juliushaertl / nextcloud-docker-dev

Nextcloud development environment using docker-compose
GNU Affero General Public License v3.0
126 stars 67 forks source link

SMB ACLs #303

Open juliushaertl opened 5 months ago

juliushaertl commented 5 months ago

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