| UNIX/Linux Forum Archives · Rules and Guidelines · Disclaimer |
Help
Search
Members
Calendar
|
| Welcome Guest ( Log In | Register ) | Resend Validation Email |
![]() ![]() ![]() |
| sriveran |
Posted: Jun 1 2005, 05:48 PM
|
|
Newbie ![]() Group: Members Posts: 2 Member No.: 1033 Joined: 1-June 05 |
Hello, everyone. I was wondering if you could help me out with some question. I have to change the password for a user in a batch process using unix command “passwd”; the problem is there is not interaction with any user in this batch process. I was checking the options in this command in order to provide the new password and disable the prompts that ask for the old and the new password at the command line and looks to me that I can not run this command directly. Do I need to use a input file or something similar.? I tried : passwd < passwdInput.txt where passwdInput is a file with the oldpassword and new password but still is showing the interactive mode asking: "Enter existing login password:" Any idea? If you guys could help me , it will greatly be appreciated. |
| fishsponge |
Posted: Jun 8 2005, 09:26 AM
|
|
Administrator ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin Posts: 679 Member No.: 1 Joined: 13-February 03 |
first of all, this is *really* insecure. Why do you have to script a password change?
Secondly, if you really must do this, then type "man expect". |
| sriveran |
Posted: Jun 8 2005, 01:32 PM
|
|
Newbie ![]() Group: Members Posts: 2 Member No.: 1033 Joined: 1-June 05 |
Thank you very much for your help.
|
![]() |
![]() ![]() ![]() |