delorie.com/archives/browse.cgi | search |
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 <thorsten AT thorstenkampe DOT de> |
Subject: | Re: CYGWIN setup home directorys for users |
Date: | Wed, 23 Mar 2011 11:09:51 +0100 |
Lines: | 29 |
Message-ID: | <imcgts$b59$1@dough.gmane.org> |
References: | <0d0701cbe934$7dceb0e0$796c12a0$@zen.co.uk> |
Mime-Version: | 1.0 |
User-Agent: | MicroPlanet-Gravity/3.0.4 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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: <http://technet.microsoft.com/en-us/library/cc771865 (WS.10).aspx> > 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |