setcifsacl(1)


NAME

   setcifsacl - Userspace helper to alter an ACL in a security descriptor
   for Common Internet File System (CIFS)

SYNOPSIS

   setcifsacl [-v|-a|-D|-M|-S] "{one or more ACEs}" {file system object}

DESCRIPTION

   This tool is part of the cifs-utils suite.

   setcifsacl 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.

   This program uses a plugin to handle the mapping of user and group
   names to SIDs. /etc/cifs-utils/idmap-plugin should be a symlink that
   points to the correct plugin to use.

OPTIONS

   -h
       Print usage message and exit.
   -v
       Print version number and exit.
   -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.
   -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.
   -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.
   -S
       Set an ACL of security descriptor with the list of ACEs Existing
       ACL is replaced entirely with the specified ACEs.

   Every ACE entry starts with "ACL:" One or more ACEs are specified
   within double quotes.  Multiple ACEs are separated by a comma.

   Following fields of an ACE can be modified with possible values:

   SID: Either a name or a raw SID value.

   type: ALLOWED (0x0), DENIED (0x1), OBJECT_ALLOWED (0x5), OBJECT_DENIED
   (0x6)

   flags: 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.

   mask: Either one of FULL, CHANGE, READ, a combination of R W X D P O,
   or a hex value

EXAMPLES

   Add an ACE
   setcifsacl -a "ACL:CIFSTESTDOM\user2:DENIED/0x1/D" <file_name>
   setcifsacl -a "ACL:CIFSTESTDOM\user1:ALLOWED/OI|CI|NI/D" <file_name>

   Delete an ACE
   setcifsacl -D "ACL:S-1-1-0:0x1/OI/0x1201ff" <file_name>

   Modify an ACE
   setcifsacl -M "ACL:CIFSTESTDOM\user1:ALLOWED/0x1f/CHANGE" <file_name>

   Set an ACL
   setcifsacl -S "ACL:CIFSTESTDOM\Administrator:0x0/0x0/FULL,
   ACL:CIFSTESTDOM\user2:0x0/0x0/FULL" <file_name>

NOTES

   Kernel support for getcifsacl/setcifsacl utilities was initially
   introduced in the 2.6.37 kernel.

SEE ALSO

   mount.cifs(8), getcifsacl(1)

AUTHOR

   Shirish Pargaonkar wrote the setcifsacl program.

   The Linux CIFS Mailing list is the preferred place to ask questions
   regarding these programs.





Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.





Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.


Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.





Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.


Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.





Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.


Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.