Add user Natasha with Edit file passwd User ID 1000, group ID 555
Add Natasha user information to the shadow file
The genus group ID for adding Natasha in the group file is 555
Create/home/natasha user's host directory for Natasha, and copy the host directory necessary files to Natasha, switch Natasha User
Modify Natasha user's home directory to/natasha
First change the host directory Natasha to Natasha, and use Usermod--home to change the host directory to Natasha, enter the Natasha user's host directory pwd to view the directory
View the last line of the user information profile
Set the password "123" for Natasha users
View the last line of a user's password profile
Lock the Natasha user account
If the terminal is in the root situation, you need to switch the terminal to see the effect of Natasha locked, unlocking is also the same reason
Unlocking the Natasha user account
As mentioned above, switch the terminal to see the effect
Special thanks: ~CHOMD 666 @ Blind Donkey
New group Police,gid to 999
Groupadd police--gid 999 hint 999 already exists, after--help can use the-o command to allow group ID duplication
To view the last line of a group configuration file
Adding Natasha users to the police group
WTF actually not a police group?
You have to force me to use the Vim/etc/group method to change the original 999 group to 9990 groups
I'll ask you to obey!
Modify the group name of the police group to Jingcha
Delete Natasha user, delete home directory and mailbox
Because the host directory was created manually and the owner was not given Natasha so that the host directory could not be deleted, the host directory owner of Natasha must be changed to Natasha before it can be deleted together
Delete a Jingcha group
===================== the secant ====================== of the magnificent points
Create a directory test in the user's home directory, enter test to create an empty file File1
No problem. Old iron, double-click 666 ...
Display file information in long format, note the permissions of the file and the user and group to which it belongs
Don't think I know ls-l people know about LL.
Set permissions for file File1 so that other users can write to the file and view the settings results
Cancels the same group of users ' read permissions to the file File1, and views the settings results.
Set permissions for file files in numeric notation, 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.
Change the permissions of the file file1 in numeric form so that the owner can only read the file. No other user has permission. View the settings results.
Go back to the upper directory to see the test permissions
Add write permissions to this directory for other users
===================== the secant ====================== of the magnificent points
To manipulate the file, create a new user Alex, is there any mistake, Natasha is created by file mode ...
The first step ... Open the passwd file to add user information
The second step ... To add a user's group to a group file
Tesla is battery car
The second step ... To the car to create a home directory, the home of the battery to put in, and then the property card to the battery
The third step ... Give him a code, give him an address.
The fourth part ... Verify the landing of the battery
===================== the secant ====================== of the magnificent points
New directory/test/dir, the owner is Tom, the array for the Group1,/test directory has permission of 777
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)
Add Jack to the group1 group to verify the Jack User's rwx permissions to the dir directory (open another terminal, then modify the group permissions in the Dir directory)
Switch to Tom User, verify the rwx permissions of Tom user to dir directory (open another terminal, modify user permissions of Dir directory in turn)
Create a new file in Dir directory Tom.txt, the owner is Tom, the group is the permission of the Group1,/test directory is 777
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)
Switch to Tom User, verify Tom User's rwx permission to Tom.txt (open another terminal, modify Tom.txt user permission to match the verification process)
Linux Basic permissions-do you understand?