Results 1 to 2 of 2

Thread: Samba 4 equivalent of "security mask"/"directory security mask"?

  1. #1

    Angry Samba 4 equivalent of "security mask"/"directory security mask"?

    Windows clients insist on creating files and directories in users' shares with -rw-rwx--- and -rwxrwx---, respectively. I want to force -rw------- and -rwx------ on the server side (except in groups shares, where things are working as I want). I have inherit acls set to yes (and the user share directories has default:group::--- in their ACL), as well as create mask and directory mask of 0600 and 0700, respectively. In Samba 3, I could use security mask and directory security mask to prevent Windows clients from overriding these, but these options were removed in Samba 4. How do I achieve equivalent functionality?

  2. #2
    Join Date
    May 2012
    Location
    Finland
    Posts
    2,004

    Default Re: Samba 4 equivalent of "security mask"/"directory security mask"?

    create mask, directory mask and force versions still work. For example:

    Code:
    create mask = 0664
    directory mask = 0775
    
    force create mode = 0664
    force directory mode = 0775
    Adjust according to your needs, of course.
    .: miuku #suse @ irc.freenode.net
    :: miuku@opensuse.org

    .: h​ttps://download.opensuse.org/repositories/home:/Miuku/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •