Jump to content

NFS full access issue


dickohead
 Share

Recommended Posts

Hey guys,

 

I have set up some NFS shares, and i have access to them, but i am unable to write to them at all.....

 

Here is the contents of /etc/exports on the server:

 

/home/tim/Music *(rw,all_squash,sync)
/home/tim/Storage *(rw,all_squash,sync)
/var/www/html/tim *(rw,all_suqash,sync)

 

and here is the contents of /etc/fstab on the client:

 

192.168.1.111:/home/tim/Music /mnt/Music nfs soft,rsize=8192,wsize=8192,nosuid 0 0
192.168.1.111:/home/tim/Storage /mnt/Storage nfs soft,rsize=8192,wsize=8192,nosuid 0 0
192.168.1.111:/var/www/html/tim /mnt/tim nfs soft,rsize=8192,wsize=8192,nosuid 0 0

 

According to what i have read, this should be correct.... but for some reason... it won't allow me full access, i have resytarted both sets of NFS (NMB) services on the client and the server, but access is still denied..... both the client and server are running mandrake 10.

 

Hope someone can see what i have done wrong!!

 

:unsure:

Link to comment
Share on other sites

yeh exportsfs has been run, and the shares are picked up by the client, but i am unable to write to them.... it's odd, because the samba shares are working perfectly, read and write :confused:

Link to comment
Share on other sites

Most importantly, remember the user needs access to the mount point to!

 

If the share is exported perfectly and mounted on say /mnt/share then /mnt/share needs to be rwx for the user too. (This is the easiest part to forget - at least i often do soince you create the /mnt/... as root and forget to change the permissions!)

Link to comment
Share on other sites

*bashes self in head*

 

thanks gowator, that's exactly what i forgot, been dealing with Samba and Apache a whole lot, and i was doing all that at the command line, but when using MDK to access NFS it was all graphical, and i wasn't logged in as root.... so it will work as root, which makes sense, but not as my user, which i shall fix when i get home! Thanks for reminding me!

Link to comment
Share on other sites

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...