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: <00f501c31895$787f53b0$78d96f83@pomello> From: "Max Bowsher" To: , 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> Subject: Re: suggestion for cygutils - usermod (was Re: howto change home path in /etc/passwd) Date: Mon, 12 May 2003 15:47:54 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 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 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/