Страница 1 из 1

samba - force create mode

Добавлено: 2008-04-29 23:03:52
luckydevil13
Растолкуйте plz

есть самба, есть юзеры они все в одной группе

есть папка upload, хочу сделать:
кто-то записал в аплоад, удалить может это только он и администратор - остальные только читать

делаю

Код: Выделить всё

[global]
        dos charset = cp866
        unix charset = koi8-r
        display charset = koi8-r
        workgroup = S-NET
        netbios aliases = SERVER13
        interfaces = 192.168.1.250
        bind interfaces only = Yes
        password server =
        restrict anonymous = 2
        lanman auth = No
        client NTLMv2 auth = Yes
        client lanman auth = No
        client plaintext auth = No
        syslog only = Yes
        name resolve order = lmhosts host bcast
        time server = Yes
        deadtime = 15
        socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
        load printers = No
        disable spoolss = Yes
        show add printer wizard = No
        os level = 255
        lm announce = Yes
        lm interval = 20
        preferred master = Yes
        dns proxy = No
        ldap ssl = no
        socket address = 192.168.1.250
        invalid users = root
        valid users = @users
        hosts allow = 192.168.0.1/255.255.248.0
        hosts deny = ALL
        max connections = 15


[upload]
        path = /tank/_shared/upload
        write list = @users
        writable = Yes
        browseable = Yes
        read only = No
        force create mode = 0755
        create mode = 0755
        force directory mode = 0755
        directory mode = 0755

когда юзер заливает фаил читать его может только он

-rwx------

что я делаю не так?

Re: samba - force create mode

Добавлено: 2008-05-03 23:44:04
luckydevil13
Нашел решение, самба была собрана с какими опциями расширенным контролем прав доступа

в глобал добавил

Код: Выделить всё

dos filemode = Yes
помогло )