Hi all,
I have a samba directory caller 'archive' which needs to create files
with
u=rw,g=,o= authorities which i believe is octal 0600.
My smb.conf contains ...
[global]
# Max permissions for a share
create mode = 0666
directory mode = 0777
[archive]
comment = Archive Directory
# Permissions when creating files in this share
create mode = 0600
directory mode = 0700
path = /export/samba/archive
read only = no
valid users = ....
So I was supprised when I got ...
dave@dave-comp:/mnt/samba/archive/dave-comp_backup$ touch test
dave@dave-comp:/mnt/samba/archive/dave-comp_backup$ ls -al
total 12
drwxrwx--- 1 dave dave 4096 2006-06-01 21:13 .
drwxrwx--- 1 dave dave 4096 2006-06-01 21:07 ..
drwxrwx--- 1 dave dave 4096 2006-06-01 21:05
2006-06-01_21.04.10.326411.dave-comp.ful
-rw-rw---- 1 dave dave 0 2006-06-01 21:13 test
dave@dave-comp:/mnt/samba/archive/dave-comp_backup$
ie 0660 ? Can anyone tell me where i am going wrong ?
Cheers
Dave
> So I was supprised when I got ... > -rw-rw---- 1 dave dave 0 2006-06-01 21:13 test > ie 0660 ? Can anyone tell me where i am going wrong ?That looks fine to me - try the 'security mask' option as well, it could be that your local machine is using the UNIX extensions to set extra attributes on files. The 'security mask' option *may* stop this, but disabling UNIX extensions will tell you for sure whether this is the problem or not. Cheers, Adam.
Thanks for that, I will look up 'security mask'. Its usefull to hear that I have setup smb.conf correctly - so the problem is deeper :) Cheers Dave
OK bury head in sand job ! Samba smb.conf is working fine. I was getting thrown by dave@dave-comp:/mnt/samba/archive/dave-comp_backup$ touch test dave@dave-comp:/mnt/samba/archive/dave-comp_backup$ ls -al total 12 drwxrwx--- 1 dave dave 4096 2006-06-01 21:13 . drwxrwx--- 1 dave dave 4096 2006-06-01 21:07 .. drwxrwx--- 1 dave dave 4096 2006-06-01 21:05 2006-06-01_21.04.10.326411.dave-comp.ful -rw-rw---- 1 dave dave 0 2006-06-01 21:13 test dave@dave-comp:/mnt/samba/archive/dave-comp_backup$ where I expected -rw------ as defined in smb.conf. However when I actually accessed the file it was restricted as in smb.conf ie --rw------. the ls -al just shows how it was mounted. Doh - Oh well wont forget that again in a hurry :) Dave