It is a bug in the cifs.ko module, I think.
I do not understand why, but it checks the group permissions and then gets a negative.
I have written a patch against the cifs.ko kernel source for 4.4.0.x that introduces a "nogperm" option.
The only thing the option does is check if you are a member of the group, and then
skip all other tests (which is only one, but still).
So if you are a member of the group you automatically get all permissions.
I... guess I wanted to say that I either didn't dig deep enough to find what was causing it, or this was the easier solution
. But I didn't upload it yet.
The way I remember it the checking of the masks *should* function so that means the module gets the wrong information. However debugging a kernel module... I guess it requires writing to the kernel ring buffer (dmesg) and I haven't done that yet (this time). I just wanted a quick fix so I created a new option. The default of this option is "gperm" so by setting it to "nogperm" it just grants you automatic access.
If you are interested, I can upload it. It has an installation script that should work provided you are using 16.04 Ubuntu and using the latest default kernel. On the other hand it might still work in 16.10, but I haven't tested it.
The installation script will check whether you have the "linux-source" package installed, if not, it will install it. Then it unpacks the relevant part of the source archive in /usr/local/src, uses the supplied tool chain (in /lib/modules/$(uname -r or the latest source?)/build to build the module and leaves it sitting in /usr/local/lib/cifs.ko.
Then running it again with --install will just install it on top of the regular module, saving the existing one as a .bak file.
After a reboot the nogperm option works.
I forgot to say that the script also applies my patch, so it downloads the sources, unpacks the cifs module, applies the patch against the cifs module, and leaves it sitting in /usr/local/lib/cifs.ko. Then --install will copy it on top of the regular cifs.ko.
I just haven't had time or providence to actually create a package (using DKMS) out of it.
So after each kernel update you would have to reapply it. DKMS was the next step, but well, life got busy.
Summary:
I have a patch + installation script available but I just need to upload it somewhere. Regards.