gfsetfacl changes the Access Control List (ACL) of files or directories in the Gfarm filesystem.
-bremoves all extended ACL entries. (The base ACL entries of the owner, group and others are not removed.)
-kremoves the only Default ACL.
-ndo not recalculate the mask entry of the ACL. The default behavior of gfsetfacl is to recalculate the mask entry, if a mask entry is not explicitly given.
-ralways recalculate the mask entry of the ACL. (Even if a mask entry is explicitly given.) (See the -n option.)
-tis test mode. Instead of changing the ACL of any files or directories, the ACL text of input text and the new ACL text are displayed.
-m acl_specThis option specifies the ACL entries text to add/replace the ACL entries of a Gfarm files or directories. Multiple ACL entries are separated by comma characters (`,').
-M acl_fileThis option specifies the file or standard input (`-') to add/replace the ACL entries of a Gfarm files or directories. This input of ACL file accepts the output of gfgetfacl command.
-?displays a list of command options.
The gfsetfacl command recognizes the following ACL entry formats. The perms field is a combination of characters that indicate the permissions: read (r), write (w), execute (x). A Default ACL entry has a d[efault:] prefix.
Permissions of owner.
Permissions of a named user.
Permissions of a file group.
Permissions of a named group.
mask of effective rights
Permissions of others.
gfsetfalc -m u:testuser:r filename
gfgetfacl filename1 | gfsetfacl -b -M - filename2
# comment
user::rw-
user:testuser:rw- #effective:r--
group::r--
group:testgroup:rw- #effective:r--
mask::r--
other::r--
default:user::rwx
default:group::r-x
default:other::r-x
u::rw,u:user1:rw,g::r,g:group1:rw,m::r,o::r,d:u::rwx,d:g::rx,d:o::rx