Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Distribution: Fedora Core 3, Red Hat 9, CentOS 4.2, Mandriva, Ret Hat Enterprise Linux 4.0
Posts: 116
Rep:
NFS mount permission denied
I'm trying to export a directory on a server and mount it from another server. The error given is as below:
mount: IP:/dir failed, reason given by server: Permission denied
My /etc/exports file looks like this:
/dir IP/Netmask(rw,sync,no_root_squash)
I tried the insecure option in the /etc/exports file but it doesn't work. I also tried giving the IP of the specific machine in the /etc/exports file where i'm trying to carry out the mount but it's the same error.
I'm trying to export a directory on a server and mount it from another server. The error given is as below:
mount: IP:/dir failed, reason given by server: Permission denied
My /etc/exports file looks like this:
/dir IP/Netmask(rw,sync,no_root_squash)
I tried the insecure option in the /etc/exports file but it doesn't work. I also tried giving the IP of the specific machine in the /etc/exports file where i'm trying to carry out the mount but it's the same error.
Can anyone help?
How are you trying to mount? Are you doing it as root or a normal user? Is the mount listed in your fstab or are you doing it by hand?
hrm... I'm not on my normal network right now, so I don't remember the exact commands to tell, but are you sure NFS is running on the server? are you sure the exports are exporting (did you do an "exportfs -ra" - again, I don't remember if that's the exact command, but it's something like that). Do you have rpcd & mountd running on the server? There's some file in /proc that shows the exports... something like /proc/net/nfs/exportfs - an nfs howto would tell you... anyway, that's another good way to tell if nfs is running... is that there?
sidra,
I have that problem, (permission denied), trying to access nfs shares on an Ubuntu box from a machine running PCLinuxOS. No problem what so ever accessing the nfs shares on PCL from Ubuntu.
If I run exportfs -a on Ubuntu box, I can then access the files.
This morning I had Ubuntu running for more than a hour before starting up PCL. And guess what. I was able to access the files.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.