Linux permission mechanism, linux permission

Source: Internet
Author: User

Linux permission mechanism, linux permission
Recognize Permissions



In Linux, permissions are controlled based on the UGO model.




Modify the user, group


Practice: create a directory 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 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.





1. Create a group and a user first.


2. Create the total directory 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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.