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 Delivered-To: mailing list cygwin AT cygwin DOT com Date: Tue, 12 Feb 2002 17:26:54 -0500 From: Alex BATKO To: cygwin AT cygwin DOT com Subject: Re: how to create a new user Message-ID: <20020212172654.Q27351@cs.mcgill.ca> References: <20020212133506 DOT N27351 AT cs DOT mcgill DOT ca> <20020212194551 DOT K14241 AT cygbert DOT vinschen DOT de> <20020212135748 DOT O27351 AT cs DOT mcgill DOT ca> <20020212211706 DOT GA31833 AT localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020212211706.GA31833@localhost>; from ryants@shaw.ca on Tue, Feb 12, 2002 at 01:17:06PM -0800 +------------------- | On Tue, Feb 12, 2002 at 01:57:48PM -0500, Alex BATKO wrote: | > | > OK. I have a particular user who already has a windows account, | > but now i'd like to be able to allow that user (username: billy) | > to ssh into the domain controller (to be able to use cygwin). | > | | | This is what I do: | | | #! /bin/bash | | mkpasswd -d -u $1 | sed -e 's/:\([A-Za-z0-9_-]\+\),\([A-Za-z0-9_-]\+\),U-/:\2\1,U-/g' >> /etc/passwd | | | | Save that as "adduser.sh", then you can just "adduser.sh billy". | | The sed script is to turn real names from Lastname, Firstname | to Firstname Lastname, since the extra comma causes issues. If that | isn't an issue for you, then remove the sed script. +------------------- Thanks for replying... Fortunately there is no comma in my case, so i don't really need to do any substitutions. I'm not sure if you made a mistake or not, in typing the '-u' flag, because my mkpasswd doesn't support that option. We are doing pretty much the same things (in creating a user), but I get permission denied after entering the password (during an ssh attempt). You don't have this problem ? Can you think of anything that might be responsible for this ? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/