System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

NFS mount : reason given by server: Permission denied

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
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,

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...!

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.

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,

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
Nuwan Alwis
Valued Contributor

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

Hi,
Ok Buddy dont get panic,
If nothing is working we will look your problem form basics.
NFS to work you need following services to be runing
1)NFS
2)portmap

start these services if not started with
#service xxxxx start

Check
#netstat -nltup
see if NFS and portmap is working properly

looking at ur given out put you have done exporting Ok. but just export it in (ro) mode first.

if every thing done with exporting
check if you can mount this locally as NFS to another folder
with
#mount -t nfs source dest
if this works fine your almost done.
let me know once its success...
Good Luck....!