When you use the uid/gid options, do all files in the share get owned by that uid/gid?
Can you check the output of the mount command after mounting the share, with and without uid/gid, and see which options ended up being used? That output will include defaults that you did not specify.
For example, here when I mount from a ds216 synology NAS using these options in fstab "username=andreas,vers=3.0,noauto" I get this in the output of mount:
rw,nosuid,nodev,relatime,vers=3.0,cache=strict,username=andreas,domain=,uid=1000,forceuid,gid=1000,forcegid,addr=<ip>,file_mode=0755,dir_mode=0755,nounix,serverino,mapposix,rsize=1048576,wsize=1048576,echo_interval=60,actimeo=1,user=andreas
uid and gid were added automatically in my case. My fstab line is:
//server/downloads /ds216/downloads cifs user,username=andreas,vers=3.0,noauto
When you use the uid/gid options, do all files in the share get owned by that uid/gid?
Can you check the output of the mount command after mounting the share, with and without uid/gid, and see which options ended up being used? That output will include defaults that you did not specify.
For example, here when I mount from a ds216 synology NAS using these options in fstab "username= andreas, vers=3. 0,noauto" I get this in the output of mount: nodev,relatime, vers=3. 0,cache= strict, username= andreas, domain= ,uid=1000, forceuid, gid=1000, forcegid, addr=<ip> ,file_mode= 0755,dir_ mode=0755, nounix, serverino, mapposix, rsize=1048576, wsize=1048576, echo_interval= 60,actimeo= 1,user= andreas
rw,nosuid,
uid and gid were added automatically in my case. My fstab line is: andreas, vers=3. 0,noauto
//server/downloads /ds216/downloads cifs user,username=
This is on artful. cifs-utils 2:6.7-1