Linux ACL and linuxacl

Source: Internet
Author: User

Linux ACL and linuxacl

To support ACL permissions, you must support partitions (ACL permissions are granted by default)

Dumpe2fs-h/dev/sda3 ==> dumpe2fs is a command to query the details of a specified partition.

-H => only the information in the super block is displayed, and the details of the disk block group are not displayed.

Temporarily enable the partition ACL permission

Mount-o remount, acl/==> allow the root partition to temporarily support ACL permissions (no more after restart)

Enable permanently

Vim/etc/fstab: Change ults to ults, acl

Restart mount-o remount ==> re-mount. You can also restart

Bytes --------------------------------------------------------------------------------------------

View and set ACL Permissions

Getfacle file name ==> view acl Permissions

Setfacl [Option] File Name

Option:

-M: sets ACL permissions.

-X: deletes the specified ACL permission.

-B: delete all acl permissions.

-D: Set the default acl permission.

-K: Delete the default acl permission.

-R recursively sets acl Permissions

Example: setfacle-m u: user1: rx/test ==> format: u: [user name]: [permission] set the user acl permission to rx for the test directory

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.