Blame setcifsacl.rst.in

Packit 5f9837
==========
Packit 5f9837
setcifsacl
Packit 5f9837
==========
Packit 5f9837
Packit 5f9837
------------------------------------------------------------------------------------------------
Packit 5f9837
Userspace helper to alter an ACL in a security descriptor for Common Internet File System (CIFS)
Packit 5f9837
------------------------------------------------------------------------------------------------
Packit 5f9837
:Manual section: 1
Packit 5f9837
Packit 5f9837
********
Packit 5f9837
SYNOPSIS
Packit 5f9837
********
Packit 5f9837
Packit Service 668931
  setcifsacl [-v|-a|-D|-M|-S] "{one or more ACEs}" {file system object}
Packit 5f9837
Packit 5f9837
***********
Packit 5f9837
DESCRIPTION
Packit 5f9837
***********
Packit 5f9837
Packit 5f9837
This tool is part of the cifs-utils suite.
Packit 5f9837
Packit Service 668931
``setcifsacl`` is a userspace helper program for the Linux CIFS client
Packit Service 668931
file system. It is intended to alter an ACL of a security descriptor
Packit Service 668931
for a file system object. Whether a security descriptor to be set is
Packit 5f9837
applied or not is determined by the CIFS/SMB server.
Packit 5f9837
Packit 5f9837
This program uses a plugin to handle the mapping of user and group
Packit Service 668931
names to SIDs. *@pluginpath@* should be a symlink that points to the
Packit 5f9837
correct plugin to use.
Packit 5f9837
Packit 5f9837
*******
Packit 5f9837
OPTIONS
Packit 5f9837
*******
Packit 5f9837
Packit Service 668931
-h
Packit Service 668931
  Print usage message and exit.
Packit 5f9837
Packit Service 668931
-v
Packit Service 668931
  Print version number and exit.
Packit 5f9837
Packit Service 668931
-a
Packit Service 668931
  Add one or more ACEs to an ACL of a security descriptor.  An ACE is
Packit Service 668931
  added even if the same ACE exists in the ACL.
Packit Service a19c70
Packit Service 668931
-D
Packit Service 668931
 Delete one or more ACEs from an ACL of a security descriptor.  Entire
Packit Service 668931
 ACE has to match in an existing ACL for the listed ACEs to be deleted.
Packit 5f9837
Packit Service 668931
-M
Packit Service 668931
  Modify one or more ACEs from an ACL of a security descriptor.  SID and
Packit Service 668931
  type are used to match for existing ACEs to be modified with the list
Packit Service 668931
  of ACEs specified.
Packit 5f9837
Packit Service 668931
-S
Packit Service 668931
  Set an ACL of security descriptor with the list of ACEs Existing ACL
Packit Service 668931
  is replaced entirely with the specified ACEs.
Packit 5f9837
Packit Service 668931
  Every ACE entry starts with "ACL:" One or more ACEs are specified
Packit Service 668931
  within double quotes.  Multiple ACEs are separated by a comma.
Packit Service a19c70
Packit Service 668931
  Following fields of an ACE can be modified with possible values:
Packit 5f9837
Packit Service 668931
  - ``SID`` - Either a name or a raw SID value.
Packit Service 668931
  - ``type`` - ALLOWED (0x0), DENIED (0x1), OBJECT_ALLOWED (0x5), OBJECT_DENIED (0x6)
Packit Service 668931
  - ``flags`` - OBJECT_INHERIT_FLAG (OI or 0x1),
Packit Service 668931
    CONTAINER_INHERIT_FLAG (CI or 0x2), NO_PROPAGATE_INHERIT_FLAG (NI
Packit Service 668931
    or 0x4), INHERIT_ONLY_FLAG (IO or 0x8), INHERITED_ACE_FLAG (IA or
Packit Service 668931
    0x10) or a combination/OR of these values.
Packit Service 668931
  - ``mask``  - Either one of FULL, CHANGE, READ, a combination of R W X D P O, or a hex value.
Packit 5f9837
Packit 5f9837
********
Packit 5f9837
EXAMPLES
Packit 5f9837
********
Packit 5f9837
Packit 5f9837
Add an ACE
Packit 5f9837
==========
Packit 5f9837
Packit Service 668931
  setcifsacl -a "ACL:CIFSTESTDOM\user2:DENIED/0x1/D" <file_name>
Packit Service 668931
  setcifsacl -a "ACL:CIFSTESTDOM\user1:ALLOWED/OI|CI|NI/D" <file_name>
Packit 5f9837
Packit 5f9837
Delete an ACE
Packit 5f9837
=============
Packit 5f9837
Packit Service 668931
  setcifsacl -D "ACL:S-1-1-0:0x1/OI/0x1201ff" <file_name>
Packit 5f9837
Packit 5f9837
Modify an ACE
Packit 5f9837
=============
Packit 5f9837
Packit Service 668931
  setcifsacl -M "ACL:CIFSTESTDOM\user1:ALLOWED/0x1f/CHANGE" <file_name>
Packit 5f9837
Packit 5f9837
Set an ACL
Packit 5f9837
==========
Packit 5f9837
Packit Service 668931
  setcifsacl -S "ACL:CIFSTESTDOM\Administrator:0x0/0x0/FULL,ACL:CIFSTESTDOM\user2:0x0/0x0/FULL" <file_name>
Packit 5f9837
Packit 5f9837
*****
Packit 5f9837
NOTES
Packit 5f9837
*****
Packit 5f9837
Packit 5f9837
Kernel support for getcifsacl/setcifsacl utilities was initially
Packit 5f9837
introduced in the 2.6.37 kernel.
Packit 5f9837
Packit 5f9837
********
Packit 5f9837
SEE ALSO
Packit 5f9837
********
Packit 5f9837
Packit 5f9837
mount.cifs(8), getcifsacl(1)
Packit 5f9837
Packit 5f9837
******
Packit 5f9837
AUTHOR
Packit 5f9837
******
Packit 5f9837
Packit 5f9837
Shirish Pargaonkar wrote the setcifsacl program.
Packit 5f9837
Packit 5f9837
The Linux CIFS Mailing list is the preferred place to ask questions
Packit 5f9837
regarding these programs.