suggestion for cygutils - usermod (was Re: howto change home path in /etc/passwd)
Sylvain.Ferriol@imag.fr
Sylvain.Ferriol@imag.fr
Mon May 12 14:58:00 GMT 2003
Surlignage Max Bowsher <maxb@ukf.net>:
> Sylvain.Ferriol@imag.fr wrote:
> > Yes , because i don't want to create a shell doing this:
> > grep -v $USERNAME /etc/passwd > /etc/passwd
>
sorry
but i don't know with sed how to delete a line starting with $USER
> 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.
>
-------------------------------------------------
envoyé via Webmail/IMAG !
--
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