Thursday, July 25, 2013

Add a new user in CentOS

Add a new user in CentOS

Login as root.
The useradd creates the new account (say myuser) and the /home/myuser home directory. The password for the user is set using passwd command.

# useradd --home /home/myuser myuser
# passwd myuser
Changing password for user myuser.
New password:
BAD PASSWORD: it is based on a dictionary word
Retype new password:
passwd: all authentication tokens updated successfully.
# su - myuser
# pwd
/home/myuser

No comments:

Post a Comment