Linux permission mechanism, linux permission
Recognize Permissions
UGO
In Linux, permissions are controlled based on the UGO model.
Practice:
Modify the user, group
Practice: create a directory linuxcast.net and modify the users and groups of the directory.
When creating files and directories, the default is to belong to the current login user and group
Modify permissions
Practice: If you want to make linuxcast.net accessible only to users and groups, but not to other users and groups, you can modify the permissions in this way.
Create a user nash_su, and switch to nash_su to see if the user can access it.
Instance
Practice:
1. Create a group and a user first.
2. Create the total directory linuxcast.net and create directories for each department.
3. Different departments cannot access their respective folders. That is to say, you must first set the group for each folder and then remove the rx permission of permission O.
Switch to the nash_su user and access other folders to see if they have access permissions.
4. Each employee has a folder under the department folder, that is, to create a folder for the employee under the department folder.
In this way, different employees in the same department can view the content of their respective folders, but they cannot be modified. Users may modify the content of their own folders.