Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMB ACLs #303

Open
juliushaertl opened this issue Feb 16, 2024 · 0 comments
Open

SMB ACLs #303

juliushaertl opened this issue Feb 16, 2024 · 0 comments

Comments

@juliushaertl
Copy link
Owner

juliushaertl commented Feb 16, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant