[Samba] Smbcacls syntax questions (Samba-3.0.25rc2)
henke at mac.se
Mon May 7 08:11:50 GMT 2007
I'm testing out smbcacls to handle acls on a linux samba server with
ext3 filesystem(acls enabled).
1. How can I change the rights mask with smbcacls? I.e mask:r-- ?
2. How can I change the permissions for an ACL to none?
/usr/local/samba/bin/smbcacls //192.168.100.1/testshare janalb-
owner -U backupuser%backupuser1 -M 'ACL:SF\backupuser:ALLOWED/0/'
ACE 'SF\backupuser:ALLOWED/0/': missing / at '0'
I ask this because I need to be able to reset the permissions to a
specific state if something goes wrong.
The original permissions are shown as followed with getfacl janalb-owner
# file: janalb-owner
# owner: janalb
# group: sf
Smbcacls returns the following when run against the same file.
As you can see backupuser, group sf and group everyone doesn't have
any effective permissions due to the mask.
Is it possible using smbcacls to create the acls shown above on a
newly created file? So far I'm having troubles with the mask permission.
More information about the samba