nextcloud-docker-dev icon indicating copy to clipboard operation
nextcloud-docker-dev copied to clipboard

SMB ACLs

Open juliusknorr opened this issue 1 year ago • 0 comments

Notes for testing SMB with ACL with https://github.com/juliushaertl/nextcloud-docker-dev/blob/master/docker-compose.yml#L683-L699

 vi /etc/samba/smb.conf

 [public]
   path = /smbmount
   browsable = yes
   read only = no
   guest ok = yes
   inherit acls = yes

smbcontrol all reload-config

apk add acl

mkdir allowed
mkdir notallowed
mkdir zallowed
setfacl -R -m other:--- /smbmount/notallowed/
touch /smbmount/notallowed/foo
touch /smbmount/notallowed/foo1
touch /smbmount/notallowed/foo12
touch /smbmount/notallowed/foo123
setfacl -m other:--- /smbmount/notallowed/
setfacl -R -m other:rwx /smbmount/notallowed/
setfacl -m other:--- /smbmount/notallowed/
setfacl -m other:rwx /smbmount/notallowed/
getfacl /smbmount/notallowed/
getfacl /smbmount/notallowed/foo
smbcacls //192.168.178.10/test path -U user%password

juliusknorr avatar Feb 16 '24 20:02 juliusknorr