SUPPORT THE SITE WITH A CLICK

Subscribe Rss:

SUPPORT THE SITE WITH A CLICK

Wednesday, March 14, 2012

Create new user in Ubuntu Linux from terminal

Use useradd command create a new user
useradd <username>

For setting up a password
passwd <username>
Enter a new unix password:
Repeat the new password:

To create a directory while adding a user account.Use -m switch to create home directory for new user.
useradd -m -s /bin/bash <username>
passwd <username>

No comments :

Post a Comment