.\" Man page generated from reStructuredText. . .TH SETCIFSACL 1 "" "" "" .SH NAME setcifsacl \- Userspace helper to alter an ACL in a security descriptor for Common Internet File System (CIFS) . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 setcifsacl [\-v|\-a|\-D|\-M|\-S] "{one or more ACEs}" {file system object} .UNINDENT .UNINDENT .SH DESCRIPTION .sp This tool is part of the cifs\-utils suite. .sp \fBsetcifsacl\fP is a userspace helper program for the Linux CIFS client file system. It is intended to alter an ACL of a security descriptor for a file system object. Whether a security descriptor to be set is applied or not is determined by the CIFS/SMB server. .sp This program uses a plugin to handle the mapping of user and group names to SIDs. \fI/etc/cifs\-utils/idmap\-plugin\fP should be a symlink that points to the correct plugin to use. .SH OPTIONS .INDENT 0.0 .TP .B \-h Print usage message and exit. .TP .B \-v Print version number and exit. .TP .B \-a Add one or more ACEs to an ACL of a security descriptor. An ACE is added even if the same ACE exists in the ACL. .TP .B \-D Delete one or more ACEs from an ACL of a security descriptor. Entire ACE has to match in an existing ACL for the listed ACEs to be deleted. .TP .B \-M Modify one or more ACEs from an ACL of a security descriptor. SID and type are used to match for existing ACEs to be modified with the list of ACEs specified. .TP .B \-S Set an ACL of security descriptor with the list of ACEs Existing ACL is replaced entirely with the specified ACEs. .sp Every ACE entry starts with "ACL:" One or more ACEs are specified within double quotes. Multiple ACEs are separated by a comma. .sp Following fields of an ACE can be modified with possible values: .INDENT 7.0 .IP \(bu 2 \fBSID\fP \- Either a name or a raw SID value. .IP \(bu 2 \fBtype\fP \- ALLOWED (0x0), DENIED (0x1), OBJECT_ALLOWED (0x5), OBJECT_DENIED (0x6) .IP \(bu 2 \fBflags\fP \- OBJECT_INHERIT_FLAG (OI or 0x1), CONTAINER_INHERIT_FLAG (CI or 0x2), NO_PROPAGATE_INHERIT_FLAG (NI or 0x4), INHERIT_ONLY_FLAG (IO or 0x8), INHERITED_ACE_FLAG (IA or 0x10) or a combination/OR of these values. .IP \(bu 2 \fBmask\fP \- Either one of FULL, CHANGE, READ, a combination of R W X D P O, or a hex value. .UNINDENT .UNINDENT .SH EXAMPLES .SS Add an ACE .INDENT 0.0 .INDENT 3.5 setcifsacl \-a "ACL:CIFSTESTDOMuser2:DENIED/0x1/D" setcifsacl \-a "ACL:CIFSTESTDOMuser1:ALLOWED/OI|CI|NI/D" .UNINDENT .UNINDENT .SS Delete an ACE .INDENT 0.0 .INDENT 3.5 setcifsacl \-D "ACL:S\-1\-1\-0:0x1/OI/0x1201ff" .UNINDENT .UNINDENT .SS Modify an ACE .INDENT 0.0 .INDENT 3.5 setcifsacl \-M "ACL:CIFSTESTDOMuser1:ALLOWED/0x1f/CHANGE" .UNINDENT .UNINDENT .SS Set an ACL .INDENT 0.0 .INDENT 3.5 setcifsacl \-S "ACL:CIFSTESTDOMAdministrator:0x0/0x0/FULL,ACL:CIFSTESTDOMuser2:0x0/0x0/FULL" .UNINDENT .UNINDENT .SH NOTES .sp Kernel support for getcifsacl/setcifsacl utilities was initially introduced in the 2.6.37 kernel. .SH SEE ALSO .sp mount.cifs(8), getcifsacl(1) .SH AUTHOR .sp Shirish Pargaonkar wrote the setcifsacl program. .sp The Linux CIFS Mailing list is the preferred place to ask questions regarding these programs. .\" Generated by docutils manpage writer. .