For a very long time I've had problems that I couldn't get access to files I had just created on a SMBFS/CIFS mount. The problem was clear:
[silfreed@joshua test]$ ls -ld .drwxrwxrwx 13 nobody nobody 0 Feb 12 09:17 .[silfreed@joshua test]$ touch junktouch: setting times of `junk': Permission denied[silfreed@joshua test]$ ls -l junk-rw-rw-r-- 1 nobody nobody 0 Feb 12 12:58 junk[silfreed@joshua test]$ echo "test" > junkbash: junk: Permission denied
The answer was made clear to me today: make a group that my user is in and mount the share on the file server with that group instead of nobody! Observe:
[silfreed@joshua test]$ ls -ld .drwxrwxr-x 13 nobody edfileserver 0 Feb 12 13:00 .[silfreed@joshua test]$ touch junk[silfreed@joshua test]$ ls -l !$ls -l junk-rw-rw-r-- 1 nobody edfileserver 0 Feb 12 13:02 junk[silfreed@joshua test]$ echo "test" > junk[silfreed@joshua test]$ cat junktest
I guess this eliminates my need for NFS on my file server, which I think is very good since the exports file is very evil for doing authenticated access (without kerberos, anyway).