I never used that $(id -u) or $(id -g). Does that work? If the shell should misinterpret those things, I assume the mounted shared would not be accessible just as in your case.
Not sure why you need to be able to execute (as a binary) every file on that drive but that's not the issue here...
I use something like
Code:
//<IP or name of CIFS server>/<name of share>/ /media/<mountpoint> cifs noauto,users,username=<user name> 0 0
in my /etc/fstab. The point here is the
users group that the users have to be in. That way all users in that group will be able to read that share. If that's not what you want, I suggest to create a new group and assign only your one user that is allowed to read the share to it. (This may be a workaround.)