1. Create a group named normalgroup. Assume that the GID 520 is not used! And gshadow Synchronization
[Root @ WWW ~] # Vi/etc/group
# Add the following line to the last line!
Normalgroup: X: 520:
[Root @ WWW ~] # Maid
[Root @ WWW ~] # Grep 'normalgroup'/etc/group/etc/gshadow
/Etc/group: normalgroup: X: 520:
/Etc/gshadow: normalgroup: X ::
# Make sure that the/etc/group and/etc/gshadow groups exist! Get the group done!
2. Create a normaluser account. Assume that uid 700 is not used!
[Root @ WWW ~] # Vi/etc/passwd
# Add the following line to the last line!
Normaluser: X: 700: 520:/home/normaluser:/bin/bash
3. Synchronize the password and create the password for this user.
[Root @ WWW ~] # Pwconv
[Root @ WWW ~] # Grep 'normaluser'/etc/passwd/etc/shadow
/Etc/passwd: normaluser: X: 700: 520:/home/normaluser:/bin/bash
/Etc/shadow: normaluser: X: 14307: 0: 99999: 7 :::
# Check whether/etc/passwd and/etc/shadow contain normaluser information! But the password is not correct ~
[Root @ WWW ~] # Passwd normaluser
Changing password for user normaluser.
New UNIX password:
Retype new Unix Password:
Passwd: All authentication tokens updated successfully.
4. Create a user's home directory and modify the permission!
[Root @ WWW ~] # Cp-A/etc/skel/home/normaluser
[Root @ WWW ~] # Chown-r normaluser: normalgroup/home/normaluser
[Root @ WWW ~] # Chmod 700/home/normaluser # You can skip this step!