LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 05-16-2005, 11:45 AM   #1
crosseyedalien
LQ Newbie
 
Registered: Nov 2004
Location: East Windsor, NJ
Distribution: Mandriva
Posts: 18

Rep: Reputation: 0
NFS Server thinks its exporting, client denied


I am getting some crazy behavior from an NFS server. The server seems to think
that it is properly exporting and allowing clients to mount directories, but the
clients show the following error message when I try to mount.

[root@hestia /]# mount -t nfs hestia:/opt/test /mnt/nfs
mount: hestia:/opt/test failed. reason given by server: Permission denied

(The NFS howto covers this error message, but that didn't work.)

On the server side I get the following message in /var/log/messages.
May 16 11:30:21 hestia rpc.mountd authenticated mount request from hestia.x.x:720 for /opt/test (/opt/test)
(for now I am just trying to mount the filesystem back onto the server)

The previous message, to me, seems to indicate that the server thinks it is
exporting the filesystem to the client machine.

Before I forget, I am running Mandriva 10.1 with kernel 2.6.11-1mdksmp.

My /etc/exports line is this:
/opt/test 192.168.1.0/24(rw,no_root_squash,sync)

From every way I know how to check, the server appears to be exporting the
correct filesystem. This included using exportfs, showmount -e, and looking in
/var/lib/nfs/etab. DNS lookups and reverse lookups work. There are also no
firewalls that could interfere with mounting.

Whenever I attempt to mount the filesystem, the server will increment that
host's count in /var/lib/nfs/rmtab. Which seems to be another indication that
the server thinks it is successfully exporting the directory to the client.
However, rmtab contains a lot of strange looking entries such as:
192.168.1.170:192.168.1.170/24:0x00000001
192.168.1.170/24:/opt/test:0x00000001
192.168.1.170:192.168.1.170/255.255.255.0:0x00000001
192.168.1.170/255.255.255.0:/opt/test:0x00000001

On an NFS server I set up that is working, the /var/lib/nfs/xtab file contains
the list of hosts that have successfully mounted an exported FS. On the NFS
server that isn't working, xtab is empty.

And finally, a 'showmount -a' gives me a strange looking list such as this:
Hosts on hestia:
192.168.1.0/24:/opt/test
192.168.1.170:192.168.1.0/24
192.168.1.170:192.168.1.170/24
192.168.1.170:192.168.1.170/255.255.255.0
192.168.1.170/24:/opt/test
192.168.1.170/255.255.255.0:/opt/test
192.168.1.246:192.168.1.0/24

Thanks in advance for any feedback.
 
Old 05-17-2005, 05:12 AM   #2
evil_empire
Member
 
Registered: Mar 2005
Distribution: Fedora Core 3
Posts: 176

Rep: Reputation: 31
And what about the permissions on "/opt/test"?
Using chmod try giving full permission for all users on "/opt/test" and then see.
 
Old 05-17-2005, 09:39 AM   #3
crosseyedalien
LQ Newbie
 
Registered: Nov 2004
Location: East Windsor, NJ
Distribution: Mandriva
Posts: 18

Original Poster
Rep: Reputation: 0
I tried playing around with the permissions again, but even
with the least restrictive permissions it still wouldn't work.

Thanks for the suggestion.

At this point I hope anybody who reads this will just fire out
any suggestions they can think of. If you know me, you'll
know that it isn't unusual for me to miss something obvious.

Just for good measure I have also tried rebooting back into
the same kernel and rebooting into a different kernel. Also,
TCP wrappers are not being used.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 05:16 AM
SuSE 9.0 NFS client with RHL 7.3 NFS server ocjacob Linux - Networking 0 02-01-2005 01:01 PM
Permission denied on client when running install script residing on NFS server dstotz Linux - Newbie 2 12-11-2004 02:10 PM
exporting one NFS folder to another NFS and exporting it.... stellarmarine1 Linux - Networking 3 09-20-2004 06:54 AM
nfs server permission denied lackluster Linux - Networking 3 08-21-2004 10:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 01:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration