NFS export not working

Manish Jain bourne.identity at hotmail.com
Thu May 7 09:00:25 UTC 2015


Hi,

On a FreeBSD 10.1 amd64 system, I am trying to export /mnt/nfs to other hosts on my network.

This is what my /etc/exports says :

/mnt/nfs 192.168.10.

/etc/rc.conf has :
nfs_server_enable="YES"
rpcbind_enable="YES"
mountd_enable="YES"
nfs_client_enable="YES"

Running rpcinfo with my IP address produces decent output, but 'rpcinfo quota' does not. 'showmount' returns an empty list :

/root # rpcinfo 192.168.10.101
   program version netid     address                service    owner
    100000    4    tcp       0.0.0.0.0.111          rpcbind    superuser
    100000    3    tcp       0.0.0.0.0.111          rpcbind    superuser
    100000    2    tcp       0.0.0.0.0.111          rpcbind    superuser
    100000    4    udp       0.0.0.0.0.111          rpcbind    superuser
    100000    3    udp       0.0.0.0.0.111          rpcbind    superuser
    100000    2    udp       0.0.0.0.0.111          rpcbind    superuser
    100000    4    tcp6      ::.0.111               rpcbind    superuser
    100000    3    tcp6      ::.0.111               rpcbind    superuser
    100000    4    udp6      ::.0.111               rpcbind    superuser
    100000    3    udp6      ::.0.111               rpcbind    superuser
    100000    4    local     /var/run/rpcbind.sock  rpcbind    superuser
    100000    3    local     /var/run/rpcbind.sock  rpcbind    superuser
    100000    2    local     /var/run/rpcbind.sock  rpcbind    superuser
    100005    1    udp6      ::.3.140               mountd     superuser
    100005    3    udp6      ::.3.140               mountd     superuser
    100005    1    tcp6      ::.3.140               mountd     superuser
    100005    3    tcp6      ::.3.140               mountd     superuser
    100005    1    udp       0.0.0.0.3.140          mountd     superuser
    100005    3    udp       0.0.0.0.3.140          mountd     superuser
    100005    1    tcp       0.0.0.0.3.140          mountd     superuser
    100005    3    tcp       0.0.0.0.3.140          mountd     superuser

/root # rpcinfo quota         
rpcinfo: can't contact rpcbind: RPC: (unknown error code)

/root # showmount -e
Exports list on localhost:

Not surprisingly, mount fails :

/root # mount -t nfs 192.168.10.101:/mnt/nfs /mnt/nfsc
[tcp] 192.168.10.101:/mnt/nfs: Permission denied

/var/log/messages records the following :

May  7 14:05:46 roundabout sshd[1884]: error: PAM: authentication error for root from 218.87.111.118
May  7 14:26:57 roundabout mountd[666]: mount request denied from 192.168.10.101 for /mnt/nfs

What could be the problem and how do I fix the issue ?

Thanks & Regards
Manish Jain

 		 	   		  


More information about the freebsd-questions mailing list