smbcacls //server/share filename -U username [-A acls] [-M acls] [-D acls] [-S acls] [-n] [-h]
The smbcacls program manipulates NT Access Control Lists (ACLs) on SMB file shares.
The following options are available to the smbcacls program:
Add the ACLs specified to the ACL list.
Modify the mask value (permissions) for the ACLs specified on the command line. An error will be printed if the ACL specified is not already present in the ACL list
Delete any ACLs specfied on the command line. An error is printed if any of the ACLs specified are not present in the ACL list.
This command deletes the current ACLs for the file or directory and replaces them with the ACLs specified on the command line.
Specifies a username used to connect to the specified service. The
username may be of the form username
in which case the user is
prompted to enter in a password and the workgroup specified in the
smb.conf file is used, or username%password
or DOMAIN\username%password
and the password and workgroup names are
used as provided.
This option displays all ACL information in numeric format. The default is to convert SIDs to names and ACE types and masks to a readable string format.
Print usage information on the smbcacls program
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project.
smbcacls was written by Andrew Tridgell and Tim Potter.