Creating SMB share ACLs
The SMB protocol supports a separate level of ACLs that can be optionally added to an SMB share.
For more information, see Managing ACLs of SMB exports using MMC.
SMB share ACLs can be added on the command line, as follows:
mmsmb exportacl
mmsmb exportacl: Missing arguments.
Usage:
mmsmb exportacl getid Retrieve the ID of user, group or system for use with SMB export ACLs.
mmsmb exportacl list List SMB export ACLs.
mmsmb exportacl add Add SMB export ACLs.
mmsmb exportacl change Change SMB export ACLs.
mmsmb exportacl remove Remove SMB export ACLs.
mmsmb exportacl replace Replace SMB export ACLs.
mmsmb exportacl delete Delete SMB export ACLs.
Examples:
-
%> mmsmb exportacl list smbexport [smbexport] ACL:\Everyone:ALLOWED/FULL ACL:MYDOM06\Administrator:ALLOWED/FULL
-
%> mmsmb exportacl remove smbexport --user "\Everyone" [smbexport] ACL:MYDOM06\Administrator:ALLOWED/FULL
For details, see the information about managing the SMB share ACLs from a Windows client through the MMC.