as root:

passwd --stdin user < file-containing-new-password



be reminded that this isn't secure

i hope this helps


mac borje wrote:
> hi everyone,
>
> Iam try to automate changing password on a curtain user on a ubuntu 
> box coz passwd is a interactive program that will ask a password then 
> ask again to retype. it is very helpful if some will tell me how to 
> issue a single command to change password that will replaces the entry 
> on the /etc/shadow coz i have a program the will grep that and inject 
> on pearl script to have a deployment program for new password on the 
> offline box.
>
> have a nice day
> ~mac
> ------------------------------------------------------------------------
>
> _________________________________________________
> Philippine Linux Users' Group (PLUG) Mailing List
> [email protected] (#PLUG @ irc.free.net.ph)
> Read the Guidelines: http://linux.org.ph/lists
> Searchable Archives: http://archives.free.net.ph

_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to