Jump to content

Problems with writable NFS share


Guest NickDeGraeve
 Share

Recommended Posts

Guest NickDeGraeve

I'm trying to create a writeable NFS share but I can never write to it.

 

I used DrakNFS to create the share on my server (HAL9000). The resulting config file looks like this:

[root@HAL9000 ~]# cat /etc/exports
# 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:

[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

 

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':

[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

 

And indeed, on hal9000:

[root@HAL9000 ~]# id nick
uid=501(nick) gid=501(nick) groups=501(nick),502(vboxusers)

and on the client:

[nick@LT-NDG: ~/mnt]$ id nick
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)

Edited by NickDeGraeve
Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...