This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
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/