On Sat, Mar 06, 2010 at 06:11:50PM +0000, Brett Parker wrote:
On 06 Mar 17:09, Chris G wrote:
On Fri, Mar 05, 2010 at 11:05:23PM +0000, Brett Parker wrote:
On 05 Mar 17:55, Chris G wrote:
I have one home directory which is shared across our SoHo LAN, the /etc/exports file on the server has:-
/home/isbd chris(rw,all_squash,anonuid=1002,anongid=1002,no_subtree_check) /home/isbd maxine(rw,all_squash,anonuid=1002,anongid=1002,no_subtree_check)
On 'chris' mount shows:-
server:/home/isbd on /home/isbd type nfs (rw,addr=192.168.1.2)
... and on 'maxine' mount shows:-
server:/home/isbd on /home/isbd type nfs (rw,addr=192.168.1.2)
... and one the server /var/lib/nfs/etab is:-
/home/isbd chris.isbd.net(rw,sync,wdelay,hide,nocrossmnt,secure,root_squash,all_squash,no_subtree_check,secure_locks,acl,anonuid=1002,anongid=1002) /home/isbd maxine.isbd.net(rw,sync,wdelay,hide,nocrossmnt,secure,root_squash,all_squash,no_subtree_check,secure_locks,acl,anonuid=1002,anongid=1002)
I can happily create, write and read files in /home/isbd from chris@chris, I can only read files on /home/isbd from maxine@maxine when I try and write anything I just get "Permission denied".
So what's the difference? Both chris and maxine systems are running xubuntu 9.10, everything looks the same but one works and the other doesn't.
(Oh, for information, isbd is UID 1002, GID 1002 on the server system)
(I think it's the gods getting their revenge because I said I preferred the simplicity of NFS!)
And what is the uid of chris@chris, and maxine@maxine...
chris is 1000 on all three systems, maxine is 1003 on all three systems, though I don't see how that's relevant as it's the connecting *system* that is relevant isn't it, not the user.
Ah as you're doing all_squash, yes... but, you've got your exports wrong. You can only export a directory once. So the export should be: /home/isbd chris(rw,all_squash,anonuid=1002,anongid=1002,no_subtree_check) maxine(rw,all_squash,anonuid=1002,anongid=1002,no_subtree_check)
Then it might work.
Aha! Thank you, I'd not read the exports man page carefully enough.