Skip to main content

mfsfacl

MooseFS file access control lists (extended attributes) management tools.

This page reproduces the manual page mfsfacl(1) as the product ships it: the text man mfsfacl prints on a machine where the packages are installed. It is not edited here, and where it disagrees with the rest of this documentation, the documentation is the side kept against the sources. What the subject is: Command line tools.

Synopsis​

mfsgetfacl [-?] [-adceEspn] OBJECT [OBJECT ...]

mfssetfacl [-?] [-bKknd] [{-s|-m|-x} ACL_SPEC] [{-S|-M|-X} ACL_FILE] OBJECT [OBJECT ...]

Description​

These tools operate on a filesystem object's (file, special file, or directory) access control list (ACL) value. ACL's in MooseFS are compatible with Linux, so in Linux you may use setfacl and getfacl commands.

mfsgetfacl prints current ACL value of given object(s).

mfssetfacl sets/changes/removes current ACL value of given object(s).

Options​

mfsgetfacl options:

-a - display the file access control list only

-d - display the default access control list only

-c - do not display the comment header

-e - print all effective rights

-E - print no effective rights

-s - skip files that only have the base entries

-p - don't strip leading '/' in pathnames

-n - print numeric user/group identifiers

mfssetfacl options:

-b - remove all extended ACL entries

-K - remove the access ACL

-k - remove the default ACL

-n - don't recalculate the effective rights mask

-d - operations apply to the default ACL

-s - set the ACL of file(s), replacing the current ACL

-S - read ACL entries to set from file

-m - modify the current ACL(s) of file(s)

-M - read ACL entries to modify from file

-x - remove entries from the ACL(s) of file(s)

-X - read ACL entries to remove from file

common options:

-? - display short usage message

ACL SPECIFICATION​

For -S, -M and -X option the parameter ACL_FILE should be a path to a file containing ACL value specifications as described below (one definition per line, multiple lines possible, content after # sign is ignored, output from mfsgetfacl command is always a valid file content).

ACL_SPEC should be one of the following:

[d[efault]:][u[ser]:]uid[:perms]

[d[efault]:]g[roup]:gid[:perms]

[d[efault]:]m[ask][:][:perms]

[d[efault]:]o[ther][:][:perms]

d means work on default ACL values instead of access values. Next part indicates whether user's, group's or other's permissions or mask should be set. If that part is omitted and only identifier is provided, it is assumed to be user identifier. If user or group is indicated, if there is no identifier, default user's or group's permissions are modified. Identifier can be a string or a number. Permissions can be in the form of letters, any subset of rwx or number. Zero, empty string or dash means no permissions for -s and -m. For -x, permissions must be omitted. Multiple specification can be supplied, divided by comma.

See also​

mfsmount(8), mfstools(1),