LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   NSF server on LinuxMint13 Maya not allowing client connections (https://www.linuxquestions.org/questions/linux-server-73/nsf-server-on-linuxmint13-maya-not-allowing-client-connections-4175422524/)

sean.miller 08-16-2012 08:13 PM

NSF server on LinuxMint13 Maya not allowing client connections
 
Hello,

I have setup a NFS server on a LinuxMint13 Maya box. When clients connect to it, they always get permission denied messages. Can someone help me figure out why this is happening?

Here are some details:

firewall is disabled

my /etc/exportfs file looks like this
/cmn/NFS/lenny_rfs *(rw,sync,no_root_squash,anonuid=0,anongid=0,subtree_check)

nfs-kernel-server and portmap are both running

showmount -e 192.168.2.106
Export list for 192.168.2.106:
/cmn/NFS/lenny_rfs (everyone)

nmap reports that port 2049 is open and I've verified that using telnet 192.168.2.106 2049 - it connects fine

I've run sudo exportfs -a and also rebooted the system

and finally, here is how I mount my nfs mount point

sudo mount 192.168.2.106:/cmn/NFS/lenny_rfs /tmp/miller
mount.nfs: access denied by server while mounting 192.168.2.106:/cmn/NFS/lenny_rfs

I forgot to mention that my home dir is encrypted, that is why I use /cmn/NFS/lenny_rfs. I have set the full path (/cmn/NFS/lenny_rfs) to mode 0777

thanks for your help
Sean Miller

GATTACA 08-17-2012 08:08 AM

What version of NFS are you trying to use?

Try this as root on the client:

Code:

mount -v -t nfs4 192.168.2.106:/cmn/NFS/lenny_rfs /tmp/miller

sean.miller 08-17-2012 08:05 PM

Thank you Gattaca, running the nfs mount command as root solved the problem. Can't believe I was dumb enough not to realize it :-)

Sean M


All times are GMT -5. The time now is 07:01 PM.