Re: Change password with usermod

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

On Mar 10, 2007, at 3:55 AM, Krzysztof Dubowik wrote:
However, I usually user chpasswd to change the password from a script, so your script becomes:

# echo postgres:secret | chpasswd

A better idea is to:

# chpasswd < passfile

where passfile has been created with the contents:


That prevents your new password from appearing momentarily in the process list during this procedure.


To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at

[Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Photo]     [Yosemite Photos]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Linux Resources]     [Fedora Users]

Add to Google Powered by Linux