Skip to Main Content
Samba Pocket Reference, 2nd Edition
book

Samba Pocket Reference, 2nd Edition

by Jay Ts, Robert Eckstein, David Collier-Brown
April 2003
Intermediate to advanced content levelIntermediate to advanced
142 pages
4h 54m
English
O'Reilly Media, Inc.
Content preview from Samba Pocket Reference, 2nd Edition
Samba Distribution Programs
|
87
smbcacls
smbcacls //server/share filename [options]
This program provides a way of modifying Windows NT ACLs on
files and directories shared by the Samba server.
Options
-A acls
Adds one or more ACLs to the file or directory. Any ACLs
already existing for the file or directory are unchanged.
-M acls
Modifies the mask of the ACLs specified. Refer to the
following section, “Specifying ACLs,” for details.
-D acls
Deletes the specified ACLs.
-S acls
Sets the specified ACLs, deleting any ACLs previously set on
the file or directory. The ACLs must contain at least a revi-
sion, type, owner, and group.
-U username
Sets the username used to connect to the specified service.
The user is prompted for a password unless the argument is
specified as
username%password. (Specifying the password on
the command line is a security risk.) If
-U domain\\username is
specified, the specified domain or workgroup will be used in
place of the one specified in the smb.conf file.
-C username
Changes the owner of the file or directory. This is a shortcut
for
-M OWNER:username. The username argument can be given as
a username or a SID in the form
S-1-N-N-D-D-D-R.
-G groupname
Changes the group of the file or directory. This is a shortcut
for
-M GROUP:groupname. The groupname argument can be given
as a group name or a SID in the form
S-1-N-N-D-D-D-R.
-n
Causes all ACL information to be displayed in numeric
format rather ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Official Samba-3 HOWTO and Reference Guide, The

Official Samba-3 HOWTO and Reference Guide, The

John H. Terpstra, Jelmer R. Vernooij
Brilliant NLP Workbook

Brilliant NLP Workbook

David Molden, Pat Hutchinson

Publisher Resources

ISBN: 9780596529017