Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot write to NFS share
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
linux_matt
Tux's lil' helper
Tux's lil' helper


Joined: 14 May 2012
Posts: 103

PostPosted: Sun Sep 16, 2012 8:51 am    Post subject: Cannot write to NFS share Reply with quote

I have an issue trying to get an NFS share writeable. Even if I chmod 777 a file on the server side on the client side it reports file system as read only

Server fstab has:

/dev/sda4 / ext4 noatime,rw 0 1 # contains home directory

/etc/exports has:

/home/joebloggs/photos 192.168.1.75 (async,rw,no_subtree_check,no_root_squash)

uid and gid is the same on server and client:

uid=1000(joebloggs) gid=100(users) groups=100(users),10(wheel) [server]
uid=1000(joebloggs) gid=100(users) groups=100(users),10(wheel),1000(roro) [client]

fstab on client:

192.168.1.75:/home/joebloggs/photos /home/joebloggs/photos nfs rw,user,uid=1000,gid=100 0 0

photos directory on client shows that the owner of the files is joebloggs in the users group

client always reports that filesystem is read-only. Any suggestions? can't think of anything else!
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Sun Sep 16, 2012 12:40 pm    Post subject: Reply with quote

linux_matt,

I'm confused with your client mount point :? Try moving it to /mnt/remote as in:
Code:
192.168.1.75:/home/joebloggs/photos /mnt/remote/joebloggs/photos nfs defaults 0 0

chown /mnt/remote/ joebloggs:joebloggs
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
linux_matt
Tux's lil' helper
Tux's lil' helper


Joined: 14 May 2012
Posts: 103

PostPosted: Sun Sep 16, 2012 3:30 pm    Post subject: Reply with quote

BillWho, thank you for responding. I carried on working away at this and in the end the problem seemed to be on the server side as I've managed to crack it. I changed /etc/exports to allow the file system from root downwards to be available rw and that made the specific directory writeable. The reason for having the exact directory the same is that I am using the using the Cinelerra render farm -- I think this is a requirement, at least it now works the way I have set it up. Once again, thanks for responding


BillWho wrote:
linux_matt,

I'm confused with your client mount point :? Try moving it to /mnt/remote as in:
Code:
192.168.1.75:/home/joebloggs/photos /mnt/remote/joebloggs/photos nfs defaults 0 0

chown /mnt/remote/ joebloggs:joebloggs
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum