|Internet Business Consultant|
|Home||Blog||Bio||Projects||Contact||Latest Blog (new site): How to Get to Genius|
There are two types of ACLs: access ACLs and default ACLs. An access ACL is the access control list for a specific file or directory. A default ACL can only be associated with a directory; if a file within the directory does not have an access ACL, it uses the rules of the default ACL for the directory. Default ACLs are optional.
ACLs can be configured:
The setfacl utility sets ACLs for files and directories. Use the -m option to add or modify the ACL of a file or directory:
Rules (<rules>) must be specified in the following formats. Multiple rules can be specified in the same command if they are separated by commas.
Whitespace is ignored. Permissions (<perms>) must be a combination of the characters r, w, and x for read, write, and execute.
If a file or directory already has an ACL, and the setfacl command is used, the additional rules are added to the existing ACL or the existing rule is modified.
For example, to give read and write permissions to user tfox:
To remove all the permissions for a user, group, or others, use the -x option and do not specify any permissions:
For example, to remove all permissions from the user with UID 500:
Services: Ecommerce Developers
|Electric Speed: Database Development|