Changing root password?

Derek Atkins warlord-DPNOqEs/LNQ at public.gmane.org
Mon Jul 27 08:39:34 EDT 2009


Scott Ehrlich <srehrlich-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org> writes:

> I do NOT want to prompted for verification of the new password, which
> is now Windows' net user option works.   net user account_of_person
> new_password (all in clear text) and the password is changed, no
> verification of new password.
>
> My goal is to NOT be prompted for verification of the new password.
> Just type it once and it takes.  Maybe I should have stated that
> earlier.

Try this (as root):
(echo new_pass; echo new_pass) | passwd --stdin user

see passwd(1)

> Thanks.
>
> Scott

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord-DPNOqEs/LNQ at public.gmane.org                        PGP key available





More information about the Discuss mailing list