setfacl | Début | Suivant | Sommaire | Préc.page.lue | Accueil |
NAME | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
SYNOPSIS | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
DESCRIPTION | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
The options -m, and -x expect an ACL on the command line. Multiple ACL entries are separated by comma characters (`,'). The options -M, and -X read an ACL from a file or from standard input. The ACL entry format is described in Section ACL ENTRIES.
The --set and --set-file options set the ACL of a file or a directory. The previous ACL is replaced. ACL entries for this operation must include permissions.
The -m (--modify) and -M (--modify-file) options modify the ACL of a file or directory. ACL entries for this operation must include permissions.
The -x (--remove) and -X (--remove-file) options remove ACL enries. Only ACL entries without the perms field are accepted as parameters, unless POSIXLY_CORRECT is defined.
When reading from files using the -M, and -X options, setfacl accepts the output getfacl produces. There is at most one ACL entry per line. After a Pound sign (`#'), everything up to the end of the line is treated as a comment.
If setfacl is used on a file system which does not support ACLs, setfacl operates on the file mode permission bits. If the ACL does not fit completely in the permission bits, setfacl modifies the file mode permission bits to reflect the ACL as closely as possible, writes an error message to standard error, and returns with an exit status greater than 0.
PERMISSIONS | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
OPTIONS | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
ACL ENTRIES | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
Whitespace between delimiter characters and non-delimiter characters is ignored.
Proper ACL entries including permissions are used in modify and set operations. (options -m, -M, --set and --set-file). Entries without the perms field are used for deletion of entries (options -x and -X).
For uid and gid you can specify either a name or a number.
The perms field is a combination of characters that indicate the permissions: read (r), write (w), execute (x), execute only if the file is a directory or already has execute permission for some user (X). Alternatively, the perms field can be an octal digit (0-7).
AUTOMATICALLY CREATED ENTRIES | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
To help the user ensure these rules, setfacl creates entries from existing entries under the following conditions:
EXAMPLES | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
Granting an additional user read access
Revoking write access from all groups and all named users (using the effective rights mask)
Removing a named group entry from a file's ACL
Copying the ACL of one file to another
Copying the access ACL into the Default ACL
CONFORMANCE TO POSIX 1003.1e DRAFT STANDARD 17 | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
AUTHOR | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
Please send your bug reports, suggested features and comments to the above address.
SEE ALSO | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
Sommaire | Début | Suivant | Sommaire | Préc.page.lue | Accueil |