Linux File-related Permissions

Source: Internet
Author: User
For details about permissions related to Linux Files-general Linux technology-Linux technology and application information, see the following. When we use the LL or LA command to view information about the current directory, we can always see such information prompts at the beginning;

-Drrr -- o ---

These are related user service permissions for this file or folder.

Let's analyze it.

10 in total.

We used this method for grouping.

-Drr -- o --

Of course, the user's permissions are limited to the permissions of other users in the group where the user is located.

Command Format: chmod [Option] Directory

Option Description: u: permission of the current user. g: permission of the Working group where the current user is located. o: Permission of other users.

Let's take an example:

We set the current user permission of the current bin directory to r (read) w (write) o (execute ). The current group is the same as the current user. Other users can only be blank

Chmod u = rwo, g = rwo, o = ''bin

At the same time. We can also use the + and-numbers to grant permissions.

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: info-contact@alibabacloud.com 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.