X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_05,SPF_HELO_PASS,TW_MK,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Thorsten Kampe Subject: Re: CYGWIN setup home directorys for users Date: Wed, 23 Mar 2011 11:09:51 +0100 Lines: 29 Message-ID: References: <0d0701cbe934$7dceb0e0$796c12a0$@zen.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit User-Agent: MicroPlanet-Gravity/3.0.4 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 * Dale Harrison (Wed, 23 Mar 2011 08:29:56 +0000) > When creating a user inside CYGWIN using "net user *username* /add", > could someone tell me the command that I can type to set the home > directory the user is to land into when the connect? Sorry, you got it completely wrong. You cannot add a user "inside Cygwin". "Net user" is a Windows commmand and it allows you to set the home directory: > When the user is added inside CYGWIN it duly gets added to the Windows > users, It's actually the other way round. And you have to use mkpasswd to update Cygwin's passwed. > but it changing the home directory in the Windows user properties > doesn't affect where the user lands, currently I have to go into the > "/etc/passwd" file It should (see /etc/profile) > and edit the bit at the end of the user's config to > "cygdrive/c/wherever" - is there a CYGWIN command line I can use at > time of user creation to set the home directory? man mkpasswd Thorsten -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple