Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <1052751266.3ebfb5a2ca7f6@webmail.imag.fr> Date: Mon, 12 May 2003 16:54:26 +0200 From: Sylvain DOT Ferriol AT imag DOT fr To: cygwin AT cygwin DOT com Subject: Re: suggestion for cygutils - usermod (was Re: howto change home path in /etc/passwd) References: <1052749051 DOT 3ebfacfbf2d0a AT webmail DOT imag DOT fr> <20030512143314 DOT GE23680 AT redhat DOT com> <1052750540 DOT 3ebfb2cc9d549 AT webmail DOT imag DOT fr> <00f501c31895$787f53b0$78d96f83 AT pomello> In-Reply-To: <00f501c31895$787f53b0$78d96f83@pomello> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252;q=1.0 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1 X-Originating-IP: 152.77.201.128 Surlignage Max Bowsher : > Sylvain DOT Ferriol AT imag DOT 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/