NFS mount "Permission denied" Problem

Apr 12, 2007 5 Replies

Hi, everyone: I got a strange problem while using the NFS--I cannot mount it even from local machine! The problem is as follow: (my IP is set to



192.168.1.60)

------------------------------------------- [root@Lrj-FC ppc]# mount -t nfs 192.168.1.60:/home/lrj/ppc/fs/nfs- root /home/lrj/ppc/mnt/ mount: 192.168.1.60:/home/lrj/ppc/fs/nfs-root failed, reason given by server: Permission denied



----------------------------------------------- And the syslog as follows: /var/log/messages: Apr 12 16:50:32 Lrj-FC iiimd[2342]: status has not been enabled yet. (1, 3) Apr 12 16:50:50 Lrj-FC rpc.mountd: authenticated mount request from Lrj-FCnet:826 for /home/lrj/ppc/fs/nfs-root (/home/lrj/ppc/fs/nfs- root) Apr 12 16:50:50 Lrj-FC rpc.mountd: can't stat exported dir /home/lrj/ ppc/fs/nfs-root: Permission denied



---------------------------------------------------



Here are my config files related to the NFS: /etc/exports: /home/lrj/ppc/fs/nfs-root 192.168.1.60(rw,no_root_squash) /home/lrj/ppc/fs/nfs-root 192.168.1.62(rw,no_root_squash)



/etc/hosts:



192.168.1.62 PPC405EP ppc
127.0.0.1 Lrj-FC localhost.localdomain localhost
192.168.1.60 Lrj-FCnet localnet

/etc/hosts.allow: portmap: ALL portmap: 192.168.1.60/255.255.255.0 portmap: 192.168.1.62/255.255.255.0 lockd: ALL mountd: ALL rquatad: ALL statd: ALL



/etc/hosts.deny: NULL



-----------------------------------------------------



Related services: [root@Lrj-FC ppc]# showmount -e Export list for Lrj-FC: /home/lrj/ppc/fs/nfs-root Lrj-FC,PPC405EP,Lrj-FCnet



[root@Lrj-FC ppc]# service nfs status Shutting down NFS mountd: rpc.mountd (pid 3507 2256) is running... nfsd (pid 2244 2245 2246 2247 2248 2249 2250 2251) is running... rpc.rquotad (pid 2242) is running...


[root@Lrj-FC ppc]# service portmap status portmap (pid 1872) is running...



-----------------------------------------------



software version: [lrj@Lrj-FC ppc]$ rpm -q nfs-utils nfs-utils-1.0.7-8



[lrj@Lrj-FC ppc]$ uname -r
2.6.11-1.1369_FC4smp

-----------------------------------------



I think that there's no problem within my configs. And, my firewall has already been disabled. Then what caused the problem? Thanks for any help or discussions.



Lrj



Hi, everyone: I got a strange problem while using the NFS--I cannot mount it even from local machine! The problem is as follow: (my IP is set to

192.168.1.60)

------------------------------------------- [root@Lrj-FC ppc]# mount -t nfs 192.168.1.60:/home/lrj/ppc/fs/nfs- root /home/lrj/ppc/mnt/ mount: 192.168.1.60:/home/lrj/ppc/fs/nfs-root failed, reason given by server: Permission denied

----------------------------------------------- And the syslog as follows: /var/log/messages: Apr 12 16:50:32 Lrj-FC iiimd[2342]: status has not been enabled yet. (1, 3) Apr 12 16:50:50 Lrj-FC rpc.mountd: authenticated mount request from Lrj-FCnet:826 for /home/lrj/ppc/fs/nfs-root (/home/lrj/ppc/fs/nfs- root) Apr 12 16:50:50 Lrj-FC rpc.mountd: can't stat exported dir /home/lrj/ ppc/fs/nfs-root: Permission denied

---------------------------------------------------

Here are my config files related to the NFS: /etc/exports: /home/lrj/ppc/fs/nfs-root 192.168.1.60(rw,no_root_squash) /home/lrj/ppc/fs/nfs-root 192.168.1.62(rw,no_root_squash)

/etc/hosts:

192.168.1.62 PPC405EP ppc 127.0.0.1 Lrj-FC localhost.localdomain localhost 192.168.1.60 Lrj-FCnet localnet

/etc/hosts.allow: portmap: ALL portmap: 192.168.1.60/255.255.255.0 portmap: 192.168.1.62/255.255.255.0 lockd: ALL mountd: ALL rquatad: ALL statd: ALL

/etc/hosts.deny: NULL

-----------------------------------------------------

Related services: [root@Lrj-FC ppc]# showmount -e Export list for Lrj-FC: /home/lrj/ppc/fs/nfs-root Lrj-FC,PPC405EP,Lrj-FCnet

[root@Lrj-FC ppc]# service nfs status Shutting down NFS mountd: rpc.mountd (pid 3507 2256) is running... nfsd (pid 2244 2245 2246 2247 2248 2249 2250 2251) is running... rpc.rquotad (pid 2242) is running...

[root@Lrj-FC ppc]# service portmap status portmap (pid 1872) is running...

-----------------------------------------------

software version: [lrj@Lrj-FC ppc]$ rpm -q nfs-utils nfs-utils-1.0.7-8

[lrj@Lrj-FC ppc]$ uname -r 2.6.11-1.1369_FC4smp

-----------------------------------------

I think that there's no problem within my configs. And, my firewall has already been disabled. Then what caused the problem? Thanks for any help or discussions.

Lrj

Hi, everyone: I got a strange problem while using the NFS--I cannot mount it even from local machine! The problem is as follow: (my IP is set to

192.168.1.60)

------------------------------------------- [root@Lrj-FC ppc]# mount -t nfs 192.168.1.60:/home/lrj/ppc/fs/nfs- root /home/lrj/ppc/mnt/ mount: 192.168.1.60:/home/lrj/ppc/fs/nfs-root failed, reason given by server: Permission denied

----------------------------------------------- And the syslog as follows: /var/log/messages: Apr 12 16:50:32 Lrj-FC iiimd[2342]: status has not been enabled yet. (1, 3) Apr 12 16:50:50 Lrj-FC rpc.mountd: authenticated mount request from Lrj-FCnet:826 for /home/lrj/ppc/fs/nfs-root (/home/lrj/ppc/fs/nfs- root) Apr 12 16:50:50 Lrj-FC rpc.mountd: can't stat exported dir /home/lrj/ ppc/fs/nfs-root: Permission denied

---------------------------------------------------

Here are my config files related to the NFS: /etc/exports: /home/lrj/ppc/fs/nfs-root 192.168.1.60(rw,no_root_squash) /home/lrj/ppc/fs/nfs-root 192.168.1.62(rw,no_root_squash)

/etc/hosts:

192.168.1.62 PPC405EP ppc 127.0.0.1 Lrj-FC localhost.localdomain localhost 192.168.1.60 Lrj-FCnet localnet

/etc/hosts.allow: portmap: ALL portmap: 192.168.1.60/255.255.255.0 portmap: 192.168.1.62/255.255.255.0 lockd: ALL mountd: ALL rquatad: ALL statd: ALL

/etc/hosts.deny: NULL

-----------------------------------------------------

Related services: [root@Lrj-FC ppc]# showmount -e Export list for Lrj-FC: /home/lrj/ppc/fs/nfs-root Lrj-FC,PPC405EP,Lrj-FCnet

[root@Lrj-FC ppc]# service nfs status Shutting down NFS mountd: rpc.mountd (pid 3507 2256) is running... nfsd (pid 2244 2245 2246 2247 2248 2249 2250 2251) is running... rpc.rquotad (pid 2242) is running...

[root@Lrj-FC ppc]# service portmap status portmap (pid 1872) is running...

-----------------------------------------------

software version: [lrj@Lrj-FC ppc]$ rpm -q nfs-utils nfs-utils-1.0.7-8

[lrj@Lrj-FC ppc]$ uname -r 2.6.11-1.1369_FC4smp

-----------------------------------------

I think that there's no problem within my configs. And, my firewall has already been disabled. Then what caused the problem? Thanks for any help or discussions.

Lrj

try rpcinfo -p and check whether all the required daemons are running to make NFS server up and running.

Thanks

Thanks for Ramakrishnaprasad.A's suggestion.

Here is the result of "rpcinfo -p" on my machine, and I think that all the necessary daemons (nfs, portmap, rquotad, lockd, mountd) are ok: 100000 2 tcp 111 portmapper 100000 2 udp 111 portmapper 100024 1 udp 32770 status 100024 1 tcp 32769 status 100011 1 udp 776 rquotad 100011 2 udp 776 rquotad 100011 1 tcp 779 rquotad 100011 2 tcp 779 rquotad 100003 2 udp 2049 nfs 100003 3 udp 2049 nfs 100003 4 udp 2049 nfs 100003 2 tcp 2049 nfs 100003 3 tcp 2049 nfs 100003 4 tcp 2049 nfs 100021 1 udp 32771 nlockmgr 100021 3 udp 32771 nlockmgr 100021 4 udp 32771 nlockmgr 100021 1 tcp 32770 nlockmgr 100021 3 tcp 32770 nlockmgr 100021 4 tcp 32770 nlockmgr 100005 1 udp 789 mountd 100005 1 tcp 792 mountd 100005 2 udp 789 mountd 100005 2 tcp 792 mountd 100005 3 udp 789 mountd 100005 3 tcp 792 mountd

in your exports file add the option insecure to you exports and see if it works..

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required