[Samba] Share authority query

Dave S samba at pusspaws.net
Thu Jun 1 20:16:20 GMT 2006


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 at dave-comp:/mnt/samba/archive/dave-comp_backup$ touch test
dave at 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 at dave-comp:/mnt/samba/archive/dave-comp_backup$

ie 0660 ? Can anyone tell me where i am going wrong ?

Cheers

Dave


More information about the samba mailing list