Adding new user

Elfyn McBratney elfyn-cygwin@exposure.org.uk
Sat Feb 15 12:24:00 GMT 2003


> 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/



More information about the Cygwin mailing list