Usage: smbcacls //server1/share1 filename
ACLs look like: 'ACL:user:[ALLOWED|DENIED]/flags/permissions'
-D, --delete=ACL Delete an acl
-M, --modify=ACL Modify an acl
-a, --add=ACL Add an acl
-S, --set=ACLS Set acls
-C, --chown=USERNAME Change ownership of a file
-G, --chgrp=GROUPNAME Change group ownership of a file
-I, --inherit=STRING Inherit allow|remove|copy
--propagate-inheritance Supports propagation of
inheritable ACE(s) when used in
conjunction with add, delete,
set or modify
--save=STRING stores the DACLs in sddl format
of the specified file or folder
for later use with restore.
SACLS, owner or integrity
labels are not stored
--restore=STRING applies the stored DACLS to
files in directory.
--recurse indicates the operation is
performed on directory and all
files/directories below. (only
applies to save option)
--numeric Don't resolve sids or masks to
names
--sddl Output and input acls in sddl
format
--query-security-info=INT The security-info flags for
queries
--set-security-info=INT The security-info flags for
modifications
-t, --test-args Test arguments
--domain-sid=SID Domain SID for sddl
-x, --maximum-access Query maximum permissions
Help options:
-?, --help Show this help message
--usage Display brief usage message
Common Samba options:
-d, --debuglevel=DEBUGLEVEL Set debug level
--debug-stdout Send debug output to standard
output
-s, --configfile=CONFIGFILE Use alternative configuration
file
--option=name=value Set smb.conf option from
command line
-l, --log-basename=LOGFILEBASE Basename for log/debug files
--leak-report enable talloc leak reporting on
exit
--leak-report-full enable full talloc leak
reporting on exit
Connection options:
-R, --name-resolve=NAME-RESOLVE-ORDER Use these name resolution
services only
-O, --socket-options=SOCKETOPTIONS socket options to use
-m, --max-protocol=MAXPROTOCOL Set max protocol level
-n, --netbiosname=NETBIOSNAME Primary netbios name
--netbios-scope=SCOPE Use this Netbios scope
-W, --workgroup=WORKGROUP Set the workgroup name
--realm=REALM Set the realm name
Credential options:
-U, --user=[DOMAIN/]USERNAME[%PASSWORD] Set the network username
-N, --no-pass Don't ask for a password
--password=STRING Password
--pw-nt-hash The supplied password is the NT
hash
-A, --authentication-file=FILE Get the credentials from a file
-P, --machine-pass Use stored machine account
password
--simple-bind-dn=DN DN to use for a simple bind
--use-kerberos=desired|required|off Use Kerberos authentication
--use-krb5-ccache=CCACHE Credentials cache location for
Kerberos
--use-winbind-ccache Use the winbind ccache for
authentication
--client-protection=sign|encrypt|off Configure used protection for
client connections
Deprecated legacy options:
-k, --kerberos DEPRECATED: Migrate to
--use-kerberos
Version options:
-V, --version Print version
Options (47)
| Option | Description | Source |
|---|---|---|
-D, --delete ACL | Delete an acl | help |
-M, --modify ACL | Modify an acl | help |
-a, --add ACL | Add an acl | help |
-S, --set ACLS | Set acls | help |
-C, --chown USERNAME | Change ownership of a file | help |
-G, --chgrp GROUPNAME | Change group ownership of a file | help |
-I, --inherit STRING | Inherit allow|remove|copy | help |
--propagate-inheritance | Supports propagation of inheritable ACE(s) when used in conjunction with add, delete, set or modify | help |
--save STRING | stores the DACLs in sddl format of the specified file or folder for later use with restore. | help |
--restore STRING | applies the stored DACLS to files in directory. | help |
--recurse | indicates the operation is performed on directory and all files/directories below. | help |
--numeric | Don't resolve sids or masks to names | help |
--sddl | Output and input acls in sddl format | help |
--query-security-info INT | The security-info flags for queries | help |
--set-security-info INT | The security-info flags for modifications | help |
-t, --test-args | Test arguments | help |
--domain-sid SID | Domain SID for sddl | help |
-x, --maximum-access | Query maximum permissions | help |
-?, --help | Show this help message | help |
--usage | Display brief usage message. | help + man |
-d, --debuglevel DEBUGLEVEL | Set debug level | help |
--debug-stdout | This will redirect debug output to STDOUT. | help + man |
-s, --configfile CONFIGFILE | The file specified contains the configuration details required by the client. | help + man |
--option name=value | Set the smb.conf(5) option "<name>" to value "<value>" from the command line. | help + man |
-l, --log-basename LOGFILEBASE | Basename for log/debug files | help |
--leak-report | Enable talloc leak reporting on exit. | help + man |
--leak-report-full | Enable full talloc leak reporting on exit. | help + man |
-R, --name-resolve NAME-RESOLVE-ORDER | Use these name resolution services only | help |
-O, --socket-options SOCKETOPTIONS | socket options to use | help |
-m, --max-protocol MAXPROTOCOL | Set max protocol level | help |
-n, --netbiosname NETBIOSNAME | Primary netbios name | help |
--netbios-scope SCOPE | This specifies a NetBIOS scope that nmblookup will use to communicate with when generating NetBIOS names. | help + man |
-W, --workgroup WORKGROUP | Set the workgroup name | help |
--realm REALM | Set the realm name | help |
-U, --user DOMAIN/]USERNAME[%PASSWORD | Set the network username | help |
-N, --no-pass | Don't ask for a password | help |
--password STRING | Specify the password on the commandline. | help + man |
--pw-nt-hash | The supplied password is the NT hash. | help + man |
-A, --authentication-file FILE | Get the credentials from a file | help |
-P, --machine-pass | Use stored machine account password | help |
--simple-bind-dn DN | DN to use for a simple bind. | help + man |
--use-kerberos desired|required|off | This parameter determines whether Samba client tools will try to authenticate using Kerberos. | help + man |
--use-krb5-ccache CCACHE | Specifies the credential cache location for Kerberos authentication. | help + man |
--use-winbind-ccache | Try to use the credential cache by winbind. | help + man |
--client-protection sign|encrypt|off | Sets the connection protection the client tool should use. | help + man |
-k, --kerberos | DEPRECATED: Migrate to | help |
-V, --version | Print version | help |