The Samba-Bugzilla – Bug 11250
somehow can delete root files
Last modified: 2017-01-03 08:01:59 UTC
smbd version 4.1.17-Debian 8
i have this in smb.conf:
path = /usr/samba/video
valid users = +smb
write list = chicker
if i will make a /usr/samba/video/file 600 as root then user chicker can't read it
user chicker can delete it!
user chicker can NOT delete it if chmod is 400
same case with dir don't have this bug
user chicker can't delete root dir 700
even that dir is still a file in *nix but no access for dirs
/usr/samba/video is chicker:smb 750
so is that bug or i do something wrong?
Delete permission is related to the directory, not the file. Therefore even if the file is owned by root, it can be deleted by the owner of the directory, "chicker".
I hope this clarifies things.