Shell script to change password
Hi...
I want to write a shell script to change my password and I want that password to be picked up from a file and I'm not supposed to type anything once I run that script and change the password.Is it possible...if yes please send me the solution. Thanks in advance, Regards, kamal. |
man chpasswd
But it's not really a good idea :) Cheers, Tink |
Hi Gurus ,
I am a new member to this group and also a novice user for unix . I have to write a shell script which can change the password of a userid four times. I want that it should read the first 3 passwords from a file . The fourth time the password will be the one which was in the beginning . Kindly help me . Regards, Satya |
Looks like I'll need a script to do this same thing, as well, I'm seeing. I found one thing that doesn't work.
Code:
passwd < [file name] |
Sounds like this exercise may be part of the curriculum of some similar course the three of you are taking when considering the quote below.
Quote:
|
And now, I've found what does work for me, in my limited case of what I needed. If this solution works for you too, then here it is:
Code:
echo [passwd] > /tmp/[password file] |
When I found this, by the way, it was after looking up chpassword, and I couldn't make it work for me, for some reason.
|
All times are GMT -5. The time now is 12:34 PM. |