Reading Windows shares as non-root user
I was able to get some window shares mounted, and was able access them as root, but non-root users did not have any access. The permissions of the files were 0770 and I couldn’t override the permissions despite using the file_mode,dir_mode,uid, and gid options specified in the mount.cifs manpage.
The solution is to use the (undocumented in the 3.0.14a version that Debian Sarge packages) noperm option. This option ignores any client-side permission checks and relies on the server to keep you honest. The documentation for these options have been updated in the trunk version of the mount.cifs manpage.
Posted in geek
