To create a user account in bash for Windows, follow the below steps:
- Open Bash application on your Windows: Go to Run, type bash
- Type the following command: # sudo adduser userName
you would see the below output on the console,
Example:Adding user `c2c20' ... Adding new group `c2c20' (1002) ... Adding new user `c2c20' (1002) with group `c2c20' ... Creating home directory `/home/c2c20' ... Copying files from `/etc/skel' ... New password: - Set a New password
- You will be asked to RE-Enter the Password.
- You will be prompted to add,
- Full Name []
- Room Number []
- Work Phone []
- Home Phone []
- Other[]
- You will be prompted to validate the details: Is the information correct? [Y/n]
- You will be taken back to the # prompt.
How to login to new user created?
# su userName
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!