Passwd --stdin pipe

Bob Gorman bob at rsi.com
Wed Mar 24 17:30:14 UTC 2004


At 12:10 PM 3/24/2004, Jeff Graves wrote:
>I'm trying to use the passwd --stdin option to pipe a plain text
>password through passwd so it gets encrypted and set properly (since
>this is my first attempt at writing shell scripts and whatnot). Just for
>testing, I'm running this code at the command line. This is the syntax
>I'm using:
>
>echo password | passwd --stdin username

Try:

  echo -n password | passwd --stdin username


-- 

I build custom Linux solutions - Hire me - I'll make it work.
mailto:bob(at)rsi.com, http://www.rsi.com/, 617.965.1700





More information about the redhat-list mailing list