This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Adding new user
- From: "Elfyn McBratney" <elfyn-cygwin at exposure dot org dot uk>
- To: "cygwin" <cygwin at cygwin dot com>,"David Rasmussen" <pinkfloydhomer at yahoo dot com>
- Date: Sat, 15 Feb 2003 11:56:46 -0000
- Subject: Re: Adding new user
- References: <20030215114756.94355.qmail@web40811.mail.yahoo.com>
- Reply-to: "Elfyn McBratney" <cygwin at cygwin dot com>
> I can imagine that this must get asked all the time,
> yet I wasn't able to find anything useful on Google or
> anywhere else.
>
> How do I create a new user account? I know that it
> probably has to exist as a Windows user first. So I
> created a new Windows user. But then what? How do I
> get cygwin to make a /home/newuser dir and understand
> that the user exists (in /etc/passwd etc.) so I can do
> "su - newuser" etc. ?
A la Cygwin Archives: <http://www.cygwin.com/ml/cygwin/> , use the search
box at the top of the page. You'll find one answered by me ;-)
Once the user/group is added use mkpasswd or mkgroup respectively to add the
user the /etc/{passwd,group}:
mkpasswd -u USERNAME and -d (for domain users) or -l (for local users)
Check out `mkpasswd --help' or `mkgroup --help' for a full list of options.
You'll need to login as the user to create the home directory, and Btw su
does not exists in the cygwin distro. Try ssh instead...
Regards,
Elfyn McBratney
elfyn@exposure.org.uk
www.exposure.org.uk
--
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/