Always permission 777 on mount shared cifs
<p>I have a little problem when I mount a SMB shared folder from a Synology NAS.
I want to mount a shared folder with permissions: <code>git:root 700</code></p>

<p>But the mounted folder always have permission set to 777 ( even after a chmod 700 without error) </p>

<p>In my <code>/etc/fstab</code> I used this line:</p>

<pre><code>#uid=999 ---&gt; git user
//server/folder /mnt/artifacts cifs username=windowsUser,password=xxxxx,gid=0,uid=999,file_mode=0700,dir_mode=0700,iocharset=utf8 0 0
</code></pre>

<p>Do you know why I cannot set my rights to 700 ?
I did a mistake ? Something stupid ?</p>

<p>Thanks in advance for your help ;) </p>