Results 1 to 5 of 5
Hi,
Is there a way in which we can provide input to the /usr/bin/passwd command so that it accepts the password rather than prompt everytime.
Basically I want to run ...
- 06-25-2003 #1Linux User
- Join Date
- May 2003
- Location
- CA
- Posts
- 370
passwd command on redhat
Hi,
Is there a way in which we can provide input to the /usr/bin/passwd command so that it accepts the password rather than prompt everytime.
Basically I want to run it in a shell script and automate password generation rather then prompting me everytime for a new password.
I tried
echo $pword | /usr/bin/passwd
but it does not work, where pword has my text password.
Thanks,
Nik
- 06-25-2003 #2Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Use passwd --stdin.
- 06-25-2003 #3Linux User
- Join Date
- May 2003
- Location
- CA
- Posts
- 370
cool...thanks.
any idea what the equivalent is on a solaris box?
- 06-25-2003 #4Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Sorry, I haven't used Solaris. Check the manpage, though.
- 07-02-2003 #5Just Joined!
- Join Date
- Jul 2003
- Location
- UT Austin,TX, USA
- Posts
- 10
Try passwd -
Originally Posted by nikhil


Reply With Quote
