LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   NFS mount : reason given by server: Permission denied (https://www.linuxquestions.org/questions/linux-newbie-8/nfs-mount-reason-given-by-server-permission-denied-725334/)

linuxsys 05-11-2009 11:33 PM

NFS mount : reason given by server: Permission denied
 
Hi,

I facing the problem when I am trying to mount the shared directory from server 1 to server 2. But I am able to successfully mount the shared directories from server 2 to server 1. please help me in this one

Below are the out put of /etc/exports of server 1
/test *(rw,sync,no_root_squash)

Below is the out put of showmount -e localhost
/test *

Regards,
Prabhu H

chrism01 05-12-2009 01:03 AM

Check the firewalls on both systems.
Also check all services are running eg nfs, nfslock, portmap. See also tcp_wrappers (hosts.allow, hosts.deny)

linuxsys 05-12-2009 01:47 AM

Hi

All the services are running fine on the both the servers, and there are no entries in the host.allow and host.deny on both the servers

-Prabhu H

chrism01 05-12-2009 02:53 AM

What about the firewalls (iptables -L ) ?

linuxsys 05-12-2009 06:09 AM

hi,

below is the iptables details

#iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

out put is same for the both the servers

-Prabhu H

archtoad6 06-09-2009 11:07 AM

Code:

iptables -L
lists only the default filter table; if you want the full picture of the state of your FW, you need something like:

Code:

for T in filter nat mangle raw
do
  echo -e "============\n$T\n------"
  iptables -L -t $T
done  | less


jamescondron 06-09-2009 11:13 AM

What command are you using to mount?


All times are GMT -5. The time now is 12:33 PM.