Proficient in the related methods of files and directories, file permissions and management
Learn how to modify file permissions and how to assign permissions during configuration
3. Experimental requirements: (all the following operations should be completed under the root user)
Create a new user named 180xname (x is the class number, name is your own name), and meet the following requirements: the user id is 2000, and the password is redhat123.
useradd -u 2000 1802huangjie
echo redhat123 |passwd --stdin 1802huangjie
Create a new user named zhangsan with class as its subgroup.
groupadd class
useradd -G class zhangsan
Create a new user named lisi with class as its subgroup.
useradd -G class lisi
Create a new user named wangwu, which does not belong to the class group, and set its shell as a non-loginable shell.
useradd -s /sbin/nologin wangwu
The passwords of the three users zhangsan, lisi, and wangwu are all set to 123456 by the echo announcement.