Samba file permission problem
Hi group,
I installed samba on my NSLU2 running etch and the setup was easy and
sweet. I didn't change a thing apart from setting writable = yes for my
home directories. However, I have the following problem when I mount my
home directory on my linux box:
dfokkema@betelgeuse:/mnt/procyon$ sudo mount -t
cifs //procyon/dfokkema /mnt/procyon/dfokkema/ -o user=dfokkema
Password:
dfokkema@betelgeuse:/mnt/procyon$ cd dfokkema/
dfokkema@betelgeuse:/mnt/procyon/dfokkema$ touch test
dfokkema@betelgeuse:/mnt/procyon/dfokkema$ ls -l test
-rw------- 1 dfokkema dfokkema 0 2007-03-25 10:13 test
dfokkema@betelgeuse:/mnt/procyon/dfokkema$ chmod 777 test
dfokkema@betelgeuse:/mnt/procyon/dfokkema$ ls -l test
-rwx------ 1 dfokkema dfokkema 0 2007-03-25 10:13 test
In other words: there seems to be a 0700 AND mask which the server
applies to my permissions. I tried various security mask options, to no
avail. The only way I could cure this is by setting
create mask = 0777
Then I can chmod 000, 707, 644, 755, 777 whatever I want. However, I
don't want to set this option because a touch test will then create a
file with 777 permissions, :-(
There must be something I'm missing here... This is my standard,
ill-behaving config according to testparm:
[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0700
directory mask = 0700
browseable = No
Does anyone have a clue?
Thanks,
David
Reply to: