IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an
email to Administrator. User accounts are meant only to access repo
and report issues and/or generate pull requests.
This is a purpose-specific Git hosting for
BaseALT
projects. Thank you for your understanding!
Только зарегистрированные пользователи имеют доступ к сервису!
Для получения аккаунта, обратитесь к администратору.
<html><head><metahttp-equiv="Content-Type"content="text/html; charset=ISO-8859-1"><title>smbcacls</title><linkrel="stylesheet"href="samba.css"type="text/css"><metaname="generator"content="DocBook XSL Stylesheets V1.60.1"></head><bodybgcolor="white"text="black"link="#0000FF"vlink="#840084"alink="#0000FF"><divclass="refentry"lang="en"><aname="smbcacls.1"></a><divclass="titlepage"><div></div><div></div></div><divclass="refnamediv"><h2>Name</h2><p>smbcacls — Set or get ACLs on an NT file or directory names</p></div><divclass="refsynopsisdiv"><h2>Synopsis</h2><divclass="cmdsynopsis"><p><ttclass="command">smbcacls</tt> {//server/share} {filename} [-D acls] [-M acls] [-a acls] [-S acls] [-C name] [-G name] [-n] [-t] [-U username] [-h] [-d]</p></div></div><divclass="refsect1"lang="en"><h2>DESCRIPTION</h2><p>This tool is part of the <ahref="Samba.7.html"><spanclass="citerefentry"><spanclass="refentrytitle">Samba</span>(7)</span></a> suite.</p><p>The <bclass="command">smbcacls</b> program manipulates NT Access Control
Lists (ACLs) on SMB file shares. </p></div><divclass="refsect1"lang="en"><h2>OPTIONS</h2><p>The following options are available to the <bclass="command">smbcacls</b> program.
The format of ACLs is described in the section ACL FORMAT </p><divclass="variablelist"><dl><dt><spanclass="term">-a acls</span></dt><dd><p>Add the ACLs specified to the ACL list. Existing
type, owner and group for the call to succeed. </p></dd><dt><spanclass="term">-U username</span></dt><dd><p>Specifies a username used to connect to the
password and workgroup names are used as provided. </p></dd><dt><spanclass="term">-C name</span></dt><dd><p>The owner of a file or directory can be changed
to the name given using the <iclass="parameter"><tt>-C</tt></i> option.
</p><p>This command is a shortcut for -M GROUP:name.</p></dd><dt><spanclass="term">-n</span></dt><dd><p>This option displays all ACL information in numeric
in the <ttclass="filename">smb.conf</tt> file.</p></dd><dt><spanclass="term">-l|--logfile=logbasename</span></dt><dd><p>File name for log/debug files. The extension
the file or directory resides. </p><p>ACLs specify permissions granted to the SID. This SID again
can be specified in CWS-1-x-y-z format or as a name in which case
it is resolved against the server on which the file or directory
resides. The type, flags and mask values determine the type of
access granted to the SID. </p><p>The type can be either 0 or 1 corresponding to ALLOWED or
DENIED access to the SID. The flags values are generally
zero for file ACLs and either 9 or 2 for directory ACLs. Some
common flags are: </p><divclass="itemizedlist"><ultype="disc"><li><p><ttclass="constant">#define SEC_ACE_FLAG_OBJECT_INHERIT 0x1</tt></p></li><li><p><ttclass="constant">#define SEC_ACE_FLAG_CONTAINER_INHERIT 0x2</tt></p></li><li><p><ttclass="constant">#define SEC_ACE_FLAG_NO_PROPAGATE_INHERIT 0x4</tt></p></li><li><p><ttclass="constant">#define SEC_ACE_FLAG_INHERIT_ONLY 0x8</tt></p></li></ul></div><p>At present flags can only be specified as decimal or
hexadecimal values.</p><p>The mask is a value which expresses the access right
file permissions of the same name. </p><divclass="itemizedlist"><ultype="disc"><li><p><spanclass="emphasis"><em>R</em></span> - Allow read access </p></li><li><p><spanclass="emphasis"><em>W</em></span> - Allow write access</p></li><li><p><spanclass="emphasis"><em>X</em></span> - Execute permission on the object</p></li><li><p><spanclass="emphasis"><em>D</em></span> - Delete the object</p></li><li><p><spanclass="emphasis"><em>P</em></span> - Change permissions</p></li><li><p><spanclass="emphasis"><em>O</em></span> - Take ownership</p></li></ul></div><p>The following combined permissions can be specified:</p><divclass="itemizedlist"><ultype="disc"><li><p><spanclass="emphasis"><em>READ</em></span> - Equivalent to 'RX'
permissions</p></li><li><p><spanclass="emphasis"><em>CHANGE</em></span> - Equivalent to 'RXWD' permissions
</p></li><li><p><spanclass="emphasis"><em>FULL</em></span> - Equivalent to 'RWXDPO'
permissions</p></li></ul></div></div><divclass="refsect1"lang="en"><h2>EXIT STATUS</h2><p>The <bclass="command">smbcacls</b> program sets the exit status
arguments, an exit status of 2 is returned. </p></div><divclass="refsect1"lang="en"><h2>VERSION</h2><p>This man page is correct for version 3.0 of the Samba suite.</p></div><divclass="refsect1"lang="en"><h2>AUTHOR</h2><p>The original Samba software and related utilities