Path: csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Nrth Newsgroups: comp.os.linux.networking Subject: Re: NFS Share Not Mounting On Debian Client From Centos NFS Server Date: Wed, 15 Aug 2012 22:31:23 +0100 Organization: A noiseless patient Spider Lines: 53 Message-ID: References: <6jvsf9-5n7.ln1@nrth.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Info: mx04.eternal-september.org; posting-host="542304c6a2b5c38856c58053ef538ec0"; logging-data="4479"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/NqhsvliLyy8QFCzsjts8z" User-Agent: Pan/0.133 (House of Butterflies) Cancel-Lock: sha1:Vn1Xgn1FOCvnnV3EAME4duZ7ouc= Xref: csiph.com comp.os.linux.networking:1589 On Wed, 15 Aug 2012 19:17:20 +0000, J G Miller wrote: > On Wednesday, August 15th, 2012, at 17:33:10h +0100, Nrth explained: > >> I have a Centos 6.3 NFS server that happily hands out shares to other >> Centos 6.3 NFS clients > > You have failed to state which version of NFS you are running on the > Centos systems and the Debian system. > > Is it NFS v3 or v4? Hello, Thanks for the reply and sorry for various omissions. I believe the server is NFSv4. The (Debian) client I'm not so sure about as it appears to be able to talk all three versions. By the way, there are no firewalls active between these two machines. After checking your supplied URL and digging a little deeper, I found with which I'm happy although it may not be to everyone's taste. First of all, the /etc/exports line as it stands now. /home/pete/ doggett.nrth.lab(rw) I've removed 'no_root_squash' and indeed root on the client cannot access the mounted NFS share, neither can any other user which was as expected so that'll do for now. Any other user that is, apart from myself. I found this very useful page and within was the solution which I found most suitable. http://www.troubleshooters.com/linux/ nfs.htm#_Mounting_an_NFS_Share_on_a_Client The solution (for me) was to change the UID and GID of my user account on the Debian box to match that of the server's record of the same username. So 'pete' on both boxes is now '500' in /etc/passwd and /etc/group. A quick chown -R pete:pete /home/pete and a (reflex) reboot and the following mount command worked as before but this time I was able to access the share. mount -t nfs4 tooms.nrth.lab:/home/pete /home/pete/serverdocs Thanks again for the reply and for the motivation. Regards, Pete.