Linux Rights Management

Source: Internet
Author: User

Three basic permissions

R Read permission (read)

W Write permission (write)

X Execute permission (execute)

1th bit: File type (d directory,-normal file, L link file)

第2-4位: The owning user right, denoted by U (user)

第5-7位: The owning group permission, expressed in G (Group)

第8-10位: Other user rights, denoted by O (other)

第2-10位: Represents all permissions, denoted by a (all)

Full information: A file that the owning user has read and write execution permissions;

have read and Write permission, no execute permission, other user only Read permission

Change operation permissions

chmod Modify File Permissions command (change mode)

Parameter:-r file and subdirectory do the same permissions operation (recursive recursive)

Example: chmod u+x a.txt

? Use numbers to represent permissions (r=4,w=2,x=1,-=0)

Example: chmod b.txt

RWX with binary notation is 111, decimal 4+2+1=7

R-x with binary notation is 101, decimal 4+0+1=5

Linux Rights Management

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.