HOME SOFTWARE GALLERY PHOTO BLOGS ABOUT ME CONTACT

ImranWeb.com

Welcome!

Internet Links

Latest News

View blogs | Login

Creating a new user in Cygwin

Cygwin users are tied to the users in Windows. Therefore, use the following command to first create a new user in Windows.

net user NewUserName NewUserPassword /add /yes

Replace NewUserName and NewUserPassword with actual values.

Then, associate this user with a local group on Windows using the following command.

net localgroup AnExistingGroup NewUserName /add

Type net localgroup by itself to get a list of local groups.

Then, use the mkpasswd command in cygwin to add this user in the /etc/passwd file.

mkpasswd -l -u NewUserName >> /etc/passwd

Finally, create a home directory for this user in /home/ folder.


Created on: Feb 5, 2010
Last updated on: Dec 5, 2024

LEAVE A COMMENT

Your email address will not be published.

Powered by 10MinutesWeb.com