Operating System - Linux
1753834 Members
7953 Online
108806 Solutions
New Discussion юеВ

Re: NFS mount : reason given by server: Permission denied

 
Prabhu Hosmani
Advisor

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 *

The nfs, nfslock, portmap services are working fine, and there are no entries in the host.allow and host.deny on both the servers
10 REPLIES 10
avizen9
Esteemed Contributor

Re: NFS mount : reason given by server: Permission denied

try this in server 1
/test -root=server2

and then run
exportfs -av

let me know what will be outcome, thanks,
Prabhu Hosmani
Advisor

Re: NFS mount : reason given by server: Permission denied

Hi

# exportfs -av
exporting -root=10.14.26.133/255.255.255.192:/test

-Prabhu H
Sajjad Sahir
Honored Contributor

Re: NFS mount : reason given by server: Permission denied

Dear friend

now it is exporting u can mount from cleint side am i right or wrong, please tell us status once u have done based on above posting.

thanks and regards

sajjad
Nuwan Alwis
Valued Contributor

Re: NFS mount : reason given by server: Permission denied

Hi Prabhu,
Just Reminding you to check your firewall(iptables) in both systems. also selinux if enforced.

Good Luck...!
Prabhu Hosmani
Advisor

Re: NFS mount : reason given by server: Permission denied

Hi,

when I am trying to mount to client it's giving error reason given by server:permission denied.

below is the out put of iptables
#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

the selinux is disabled on both the servers
skt_skt
Honored Contributor

Re: NFS mount : reason given by server: Permission denied

do "service iptables stop" and try again.
Prabhu Hosmani
Advisor

Re: NFS mount : reason given by server: Permission denied

Hi,

Even I have tried that one, but it's not working..... still getting same error...

-Prabhu
avizen9
Esteemed Contributor

Re: NFS mount : reason given by server: Permission denied

when you tried exportfs -av you will get below output right?

# exportfs -av
exporting -root=10.14.26.133/255.255.255.192:/test

what is ip for server1 and server2
are you able to do telnet or ssh from server1 to server2?

are you doing this task with root user?
how about use other moutpoint insted of /test may be just create a directory call xyz and try to export what will happen.

let us know.
it will be good if you can assign some points to all who had replied you. thanks,
Prabhu Hosmani
Advisor

Re: NFS mount : reason given by server: Permission denied

Hi,

The server1 ip is 10.14.26.131 and server2 ip is 10.14.26.133.
Yes I am able to do ssh between the servers. I am doing this task with root user only.
I have tried with other mount points, but still the same error.

But as I told earlier, I am able to export successfully from server2 to server1. But it is not happening from server1 to server2 ?

-Prabhu