This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: CYGWIN setup home directorys for users
- From: Thorsten Kampe <thorsten at thorstenkampe dot de>
- To: cygwin at cygwin dot com
- Date: Wed, 23 Mar 2011 11:09:51 +0100
- Subject: Re: CYGWIN setup home directorys for users
- References: <0d0701cbe934$7dceb0e0$796c12a0$@zen.co.uk>
* 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