I used DrakNFS to create the share on my server (HAL9000). The resulting config file looks like this:
CODE
[root@HAL9000 ~]# cat /etc/exports
# generated by drakhosts.pl
/home/nick/Music 192.168.0.*(no_all_squash,async,secure,no_subtree_check,rw)
# generated by drakhosts.pl
/home/nick/Music 192.168.0.*(no_all_squash,async,secure,no_subtree_check,rw)
When I mount it on my client it isn't writeable:
CODE
[nick@LT-NDG: ~/mnt]$ sudo mount -t nfs hal9000:/home/nick/Music /home/nick/mnt/Music/
[nick@LT-NDG: ~/mnt]$ touch Music/something
touch: cannot touch `Music/something': Permission denied
[nick@LT-NDG: ~/mnt]$ touch Music/something
touch: cannot touch `Music/something': Permission denied
After some testing and googling I came to the conclusion that the problem lies with an incorrect UID and GUID.
Apparently, the share is mounted as 'oracle:vboxuser' instead of 'nick:nick':
CODE
[nick@LT-NDG: ~/mnt]$ ls -la Music/
total 16
drwxr-xr-x 2 oracle vboxusers 4096 2008-08-31 17:15 ./
drwxr-xr-x 4 nick nick 4096 2008-08-31 13:49 ../
-rw-r--r-- 1 oracle vboxusers 47 2007-10-13 17:45 .directory
lrwxrwxrwx 1 oracle vboxusers 14 2008-08-31 17:15 mp3 -> /home/nick/mp3
total 16
drwxr-xr-x 2 oracle vboxusers 4096 2008-08-31 17:15 ./
drwxr-xr-x 4 nick nick 4096 2008-08-31 13:49 ../
-rw-r--r-- 1 oracle vboxusers 47 2007-10-13 17:45 .directory
lrwxrwxrwx 1 oracle vboxusers 14 2008-08-31 17:15 mp3 -> /home/nick/mp3
And indeed, on hal9000:
CODE
[root@HAL9000 ~]# id nick
uid=501(nick) gid=501(nick) groups=501(nick),502(vboxusers)
and on the client:uid=501(nick) gid=501(nick) groups=501(nick),502(vboxusers)
CODE
[nick@LT-NDG: ~/mnt]$ id nick
uid=500(nick) gid=500(nick) groups=500(nick),6(disk),14(uucp),501(vboxusers)
uid=500(nick) gid=500(nick) groups=500(nick),6(disk),14(uucp),501(vboxusers)
While googling I found a solution using the 'static_map=' switch but that doesn't seem to work on MDV2008.1.
What is the best way to fix this?
(edit: submitted prematurely and have now completed the post)