Linux Rookie starter 2 user Rights list

Source: Internet
Author: User


Second unit user Rights list

1. Definition of permission list

Specify a record table that special users have special permissions on a file

2. Recognition of permission lists

-rw-rw-r--+ 1 root root Oct 21:20 file permission bit has plus permission list open

-rw-r--r--. 1 root root 0 Oct 21:22 westos permission bit number permission list not open

3. View of the Permissions list

Getfaclfile

file:file file name

owner:root file owner

group:root file all groups

user::rw-file Owner permissions

user:test:rw-Special specified user rights

group::r--Group Permissions

MASK::RW permission Threshold

other::r--Other people's rights

     

4. How to set ACL list

setfac-m u:username: Permissions filename

setfacl-m u:test:rwfile Specifies that the test user can read and write to file files

setfacl-x u:studentfile Remove student user information from the list

setfacl-x g:student File Delete student group information in the list

setfacl-b filename close ACL list

     

5.masks permission Threshold

If you perform chmod on a file that has a permission list, you will likely modify the mask in the full-limit list

Mask is the maximum permission value that a particular user can get

setfacl-m m: Permissions # #修改该mask的值

6. Default Permissions

when we need to create a new file or directory in the specified directory that has special permissions for the specified user

setfac-m d:u:username: Permissions filename

default permissions do not take effect on existing files

default permissions do not take effect on the directory itself


This article from the "12147236" blog, reproduced please contact the author!

Linux Rookie starter 2 user Rights list

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.