[Samba] Help to understand file/parent permissions

Salatiel Filho salatiel.filho at gmail.com
Thu Oct 11 07:52:12 MDT 2012


Hi guys, i am having a very strange problem that is driving me crazy.

I have a very simple samba setup

I am using version 3.5.10-0.107.el5


# cat /etc/samba/smb.conf
[global]
        realm = MYDOMAIN.BIZ
        security = ADS
        idmap uid = 16777216-33554431
        idmap gid = 16777216-33554431

[test]
        path = /tmp/temp
        read only = No



Inside /tmp/test i have the following tree:

# ls -laR /tmp/temp/

/tmp/temp/:
total 4
drwxr-xr-x 3 root root 1024 Oct 11 10:35 .
drwxrwxrwt 5 root root 1024 Oct 11 10:42 ..
drwxr-xr-x 2 myuser root 1024 Oct 11 10:42 someFolder

/tmp/temp/someFolder:
total 2
drwxr-xr-x 2 myuser root 1024 Oct 11 10:42 .
drwxr-xr-x 3 root root 1024 Oct 11 10:35 ..
-rw-r--r-- 1 root root    0 Oct 11 10:36 someFile


I can connect from windows 7 to the share just fine using myuser. So
now comes the question:

Why myuser can rename someFile if its owned by root:root and
permission is -rw-r--r-- ? (Though i can not change its contents). I
think this is related to myuser being the owner of the folder itself,
but i am not sure because of the behaviour in this other question:
Why if i set permission to -rw-r-----, now myuser can not rename the
file anymore ?


[]'s
Salatiel


More information about the samba mailing list