Create a common user account in CentOS
| 1 | .Create a common user account. |
[root@dlp ~]# useradd jenson
[root@dlp ~]#passwd jenson
Changing password for user cent.(type your password)
New UNIX password:
# set password
Retype new UNIX password:
# Confirm
passwd: all authentication tokens updated successfully.
[root@dlp ~]#exit
2 .Create a use with custom home directory
[root@dlp ~]# useradd -d /opt/jenson -m jenson (help you to set home directory of user jenson in /opt
[root@dlp ~]#passwd jenson
Changing password for user cent.(type your password)
New UNIX password:
# set password
Retype new UNIX password:
# Confirm
passwd: all authentication tokens updated successfully.
[root@dlp ~]#exit
No comments:
Post a Comment