Re: sshd & passwd

From: Alan Hadsell (ahadsell@MtDiablo.com)
Date: 12/11/02


From: Alan Hadsell <ahadsell@MtDiablo.com>
Date: Wed, 11 Dec 2002 13:30:32 GMT


"t Sänger" <saenger@edv.klinik.uni-mainz.de> writes:

> I am using cygwin with sshd.
> My problem is, if i want to add an new user into my passwd with the
> following command:
> mkpasswd -l -u test > /etc/passwd
> all existing users will be deleted.
> What do i have to do, that i can add a user and the old ones keeps alive?

mkpasswd -l -u test >> /etc/passwd

Note the two ">>". This redirects the output and appends it to the
/etc/passwd file.

-- 
Alan Hadsell
If something's already broken, does it really matter how many pieces it's in?
--James Bottomley on lkml