View Single Post

  #4 (permalink)  
Old 06-24-2008
Dave B
 
Posts: n/a
Default Re: How to set password from command line

Ignoramus19021 wrote:

>>> I am not interested in BS lectures about security.

> And I would prefer to deal with an excrypted password.


Uhm...reread the two phrases above. Anyway, why not edit /etc/shadow
directly then?

awk -F':' -v OFS=':' '/^root/{$2=encryptedpassw}1' /etc/shadow > newshadow

--
D.
Reply With Quote