账号与群组和/etc/passwd、/etc/shadow、/etc/group、/etc/gshadow有关
Method 1 Steps:
(1) Create the desired group: Vi/etc/group
(2) Synchronize the/etc/group with the/etc/gshadow: Grpconv
(3) Create the various attributes of the account: VI/ETC/PASSWD
(4) Synchronize the/etc/passwd with the/etc/shadow: Pwconv
(5) Establish the password for this account: passwd AccountName
(6) Building a home directory: Cp-a/etc/skel/home/accountname
(7) Change the properties of the user home directory:
Chown-r Accountname.group/home/accountname
chmod 700/home/accountname
Method 2 Steps:
(1) Create the desired group: Vi/etc/group
(2) Create the various attributes of the account: VI/ETC/PASSWD
(3) OpenSSL passwd-1-salt ' 12345678 '
(4) Vim/etc/shadow Add the encryption password created above
(5) Building a home directory: Cp-a/etc/skel/home/accountname
(6) Change the properties of the user home directory:
Chown-r Accountname.group/home/accountname
chmod 700/home/accountname
Create a Linux account manually