This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]