Acl permission and setting method ACL mainly aims to provide specific permissions beyond the traditional permissions. ACL allows you to set permissions for r, w, and x for a single user, a single file, or a directory. It is very helpful for users who require special permissions. ACL can be used for the following items... acl permissions and setting methods ACL mainly aims to provide specific permissions beyond the traditional permissions. ACL allows you to set permissions for r, w, and x for a single user, a single file, or a directory. It is very helpful for users who require special permissions. ACL can be set for the following items: www.2cto.com users: users can set permissions for users; user groups: users can set permissions for user groups; default properties: you can set the default permissions for new data when creating a directory in this directory. How to enable the ACL to use mount, you can directly view the mount parameter function. If no acl exists, the acl permission is not enabled during mounting. You can run the dump2fs-h/dev/sda2 command to view the status information of the device. There is a row of Default mount options: *****. if there is an acl in ***, it indicates that acl is supported. Next, we can use the mount-o remount and acl/command to re-mount the root partition, so that the acl permission is enabled. If you want to take effect after each boot, you can edit/etc/fstab and modify relevant parameters. /Dev/sda1/ext4 ULTS ults, acl 1 1ACL setting skills setfacl [-bkRd] [{-m |-x} acl parameter] target file name parameter:-m: set subsequent acl parameters for the file. it cannot be used with-x. -X: used to delete subsequent acl parameters. it cannot be used with-m. -B: delete all acl settings parameters. -K: delete the default acl parameter. -R: recursively sets the acl. -D: set the default acl parameter, which is only valid for directories. This default value is referenced in the new data in this directory.
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.