setcifsacl -version (return code: 0)
Version: 6.7
setcifsacl -h (return code: 0)
setcifsacl: Alter CIFS/NTFS ACL in a security descriptor of a file object
Usage: setcifsacl option <list_of_ACEs> <file_name>
Valid options:
-v Version of the program
-a Add ACE(s), separated by a comma, to an ACL
setcifsacl -a "ACL:Administrator:ALLOWED/0x0/FULL" <file_name>
-D Delete ACE(s), separated by a comma, from an ACL
setcifsacl -D "ACL:Administrator:DENIED/0x0/D" <file_name>
-M Modify ACE(s), separated by a comma, in an ACL
setcifsacl -M "ACL:user1:ALLOWED/0x0/0x1e01ff" <file_name>
-S Replace existing ACL with ACE(s), separated by a comma
setcifsacl -S "ACL:Administrator:ALLOWED/0x0/D" <file_name>
Refer to setcifsacl(1) manpage for details