Samba smb.conf "create mask" option for shares is not working.

Posted on 2007-10-09
Last Modified: 2013-12-16
I have the following share defined in smb.conf:

   path = /home/user/data
   writeable = yes
   valid users = me, them
   force group = them
   create mask = 775

The "force group" option seems to work, but the "create mask" option does not.  All files are created with the 755 mask instead of 775--thus not giving "them" write access to files that "me" creates while using a Windows workstation to access the share.  

Note that I have restarted the samba server (service smb restart) to make sure the settings take effect, but it still doesn't work.
Question by:kleencoder
    1 Comment
    LVL 43

    Accepted Solution

    create mask is not the mask file is going to be created. If some bit sare unset in create mask, then they will not be set on resulting file. So with this param You can only restrict some bits - not enchance.
            create mask = 0664
            security mask = 0664
            directory mask = 0775
            directory security mask = 0775

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
    Join Greg Farro and Ethan Banks from Packet Pushers ( and Greg Ross from Paessler ( for a discussion about smart network …
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now