[Samba] Cifs permission for mac guests

Vincent Tschanz bluekarasu at gmail.com
Fri Jun 29 03:03:40 MDT 2012


Hi,

I have a FreeNAS server with a cifs share, accessible by all the lan
users (guest access)
Every one can access it and write in it.

When Mac OSX users are creating a file or a folder, they write it with
the following permissions :

rwxr-xr-x

Rhis only happen with mac users.

So the other users can't modify or delete theses files/folders.

How to configure my share if I want that all the files and folders have
rwxrwxrwx permissions?

Thank you

Here is my current smb.conf

 cat /etc/local/smb.conf
[global]
    encrypt passwords = yes
    dns proxy = no
    strict locking = no
    read raw = yes
    write raw = yes
    oplocks = yes
    max xmit = 65535
    deadtime = 15
    display charset = LOCALE
    max log size = 10
    syslog only = yes
    syslog = yes
    load printers = no
    printing = bsd
    printcap name = /dev/null
    disable spoolss = yes
    smb passwd file = /var/etc/private/smbpasswd
    private dir = /var/etc/private
    getwd cache = yes
    guest account = guest
    map to guest = Bad Password
    obey pam restrictions = Yes
    guest ok = yes
    guest only = yes
    netbios name = freenas
    workgroup = WORKGROUP
    server string = FreeNAS Share
    use sendfile = yes
    large readwrite = no
    local master = yes
    time server = yes
    security = share
    force user = guest
    force group = guest
    passdb backend = tdbsam:/var/etc/private/passdb.tdb
    create mask = 0777
    directory mask = 0777
    client ntlmv2 auth = yes
    dos charset = CP437
    unix charset = UTF-8
    log level = 1
force create mode = 0776
force directory mode = 0777
[homes]
    comment = Home Directories
    valid users = %U
    writable = yes
    browseable = no
    path = /mnt/backup/share/%U

[share]
    path = /mnt/backup/share
    printable = no
    veto files = /.snap/.windows/
    writeable = yes
    browseable = yes
    inherit owner = yes
    inherit permissions = yes
    recycle:repository = .recycle/%U
    recycle:keeptree = yes
    recycle:versions = yes
    recycle:touch = yes
    recycle:directory_mode = 0777
    recycle:subdir_mode = 0700
    vfs objects =  recycle zfsacl
    guest ok = yes
    guest only = yes
    inherit acls = Yes
    map archive = No
    map readonly = no
    nfs4:mode = special
    nfs4:acedup = merge
    nfs4:chown = yes
force create mode = 0776
force directory mode = 0777



More information about the samba mailing list