A. users, groups, and permissions
1) New user natasha,uid is 1100,gid to 555, note information is "master"
2) Modify Natasha user's home directory for/natasha
3) View the last line of the user information profile
4) Set the password "123" for the Natasha user
5) View the last line of the user's password profile
6) Lock the Natasha user account
7) Unlock the Natasha user account
8) New Group Police,gid to 888
9) View the last line of the group configuration file
10) Add Natasha user to police group
11) Modify the group name of the police group to Jingcha
12) Delete Natasha user, even home directory and mailbox deleted together
Type the command "Userdel-r Natasha"
13) Delete Jingcha Group
two. in-depth discussion of users, groups, and permissions
1) Create a directory test in the user's home directory, enter test to create an empty file File1
2) display file information in long format, note the permissions of the file and the user and group to which it belongs
3) Set permissions for file File1 so that other users can write to this file.
4) View Settings results
5) Remove the Read permission from the same group of users to the file File1 and view the setting results.
6) Use digital notation to set permissions for file files, all readable, writable, and executable, and the owning group user and other users have only read and execute permissions. Review the setup results when the settings are complete.
7) Change the permissions of the file File1 in digital form so that the owner can only read the file. No other user has permission. View the settings results.
8) go back to the upper directory to see the test permissions
9) Add write permissions to this directory for other users
three. Create a new user by manipulating the file Alex
Type "Alex:x:1004:1004::/home/alex:/bin/bash" to save.
Type "Alex::::::::", save.
Type "alex:x:1004:" and save.
Type "alex:!::",: qw! force save.
four. in-depth discussion of users, groups, and Permissions (2)
1) Create a new directory/test/dir, the owner is Tom, the array for the Group1,/test directory has permission of 777
2) New user jack, switch to the jack user, verify the jack user rwx permissions to the dir directory (open another terminal, and then modify the Dir directory's others permissions)
3) Add Jack to the group1 group to verify the Jack User's rwx permissions to the dir directory (open another terminal, and then modify the group permissions of the Dir directory)
4) switch to Tom User, verify the RWX permission of Tom user to dir directory (open another terminal, modify the user permission of Dir directory in turn)
5) Create a new file in Dir directory Tom.txt, the owner is Tom, the group is the Group1,/test directory permissions of 777
6) New user rose, switch to Rose User, verify the Rose User's rwx permissions to Tom.txt (open another terminal, modify tom.txt others permissions to match the verification process)
7) Add rose to the group1 group and, under the Rose user, verify the rwx permissions of the rose user to Tom.txt (open another terminal and modify Tom.txt group1 permissions to match the verification process)
8) switch to Tom User, verify Tom User's rwx permission to Tom.txt (open another terminal, modify Tom.txt user permission to cooperate with the verification process)
(ii) Linux system users, groups and permissions