Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am trying to configure samba [homes] share to use 0775 as permissions for ALL directories created via SMB share (e.g. from Windows).

I tried a lot of configuration options from Samba manual, Ubuntu Wiki and AskUbuntu, but nothing helped me.

Output from testparam:

user@HOSTNAME:~$ testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Global parameter unix extensions found in service section!
Loaded services file OK.
Press enter to see a dump of your service definitions

        workgroup = VIDEOPORTAL
        server string = %h server (Samba, Ubuntu)
        map to guest = Bad User
        obey pam restrictions = Yes
        pam password change = Yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
        unix password sync = Yes
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 1000
        dns proxy = No
        usershare allow guests = Yes
        panic action = /usr/share/samba/panic-action %d
        idmap config * : backend = tdb

        comment = Home Directories
        valid users = @www-data
        force group = www-data
        read only = No
        create mask = 0644
        force create mode = 0644
        directory mask = 0775
        force directory mode = 0775
        directory security mask = 0775
        force directory security mode = 0775
        nt acl support = No
        map archive = No
        browseable = No

The following permissions are applied:

drwxr-xr-x 2 username www-data 4.0K Aug  7 13:03 111

Could somebody help me with this issue?

P.S. Solution from I cant get samba to set proper permissions on created directories does not work for me.

share|improve this question
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.