Re: Change password with usermod
Ian Ward Comfort <[email protected]>
| Newsgroups | org.kernel.vger.linux-admin |
|---|---|
| Message-ID | <[email protected]> |
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: postgres:secret That prevents your new password from appearing momentarily in the process list during this procedure. —IWC - To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html