title: Samba create_mode and directory_mode not working in ubuntu18
body: <p>We are installing samba on <strong>Ubuntu18.04</strong> and samba has default version <strong>4.7.4-ubuntu</strong></p>
  
  <p>Configured <strong>samba</strong> for a share and set <strong>create_mode</strong> as <strong>0664</strong> and <strong>directory_mode</strong> as <strong>0700</strong>:</p>
  
  <pre><code>[Sharemike]
    path = /opt/shareonly
    create mask = 0664
    directory mask = 0700
    browseable = yes
    writeable = yes
    comment = sharing /opt/sharepublic folder
    read only = no
    valid users = mike
  </code></pre>
  
  <p>Mounted share locally. Able to create file and directory using smbclient and also with mike user account.
  But when checked the <strong>directory_mode</strong> and <strong>creare_mode</strong>, they are showing <strong>755</strong> and <strong>755</strong></p>
  
  <p>Also tried below combinations in <strong>smb.conf</strong> but did nto work:</p>
  
  <pre><code>inherit permissions = yes
  unix extensions = no
  obey pam restrictions = no
  force create mode = 0664
  force directory mode = 2700
  force user = mike
  </code></pre>
  
  <p>In <strong>Ubuntu16</strong> it is working as configured in samba.</p>
  
  <p>Can anyone explain why this behaviour in Ubuntu18?</p>