suggestion for cygutils - usermod (was Re: howto change home path in /etc/passwd)

Max Bowsher maxb@ukf.net
Mon May 12 14:55:00 GMT 2003


Sylvain.Ferriol@imag.fr wrote:
> Yes , because i don't want to create a shell doing this:
> grep -v $USERNAME /etc/passwd > /etc/passwd

Care! That will leave you with an empty /etc/passwd.
The shell truncates /etc/passwd BEFORE grep reads it.

> mkpasswd -l -u $USERNAME -p $HOME >> /etc/passwd
> 
> sylvain

Max.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list