LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   NFS denied mount request (https://www.linuxquestions.org/questions/debian-26/nfs-denied-mount-request-768039/)

antixsuperstar 11-09-2009 06:25 PM

NFS denied mount request
 
Hi everyone,

I've been searching for answers to this issue I've been having since I last installed Debian etch (2.6.26-2-686 i686): I can't get to mount a specific nfs share.

The details on server (192.168.2.230) and client (192.168.2.239) computers

server's mounting scheme:
/dev/sda1 is mounted on /
/dev/sda4 is mounted on /home
/dev/sda6 is mounted on /var

server's /etc/exports:
Code:

/home/marc05        192.198.2.239(rw,root_squash,subtree_check)
/var/www        192.168.2.239(rw,root_squash,subtree_check)

client's /etc/fstab:
Code:

192.168.2.230:/home/marc05 /home/marc05/marc05.nfs nfs defaults,rw,user,noauto 0 0
192.168.2.230:/var/www /home/marc05/web nfs defaults,rw,auto 0 0

Now from client i do

Code:

sudo mount /home/marc05/marc05.nfs
And I get

Code:

mount.nfs: access denied by server while mounting 192.168.2.230:/home/marc05
On the server's /var/log/syslog the following appears:

Code:

mountd[2955]: refused mount request from 192.168.2.239 for /home/marc05 (/): not exported
Now, i know that there are some posts out there that say that to make this work I'd have to be sharing a real filesystem, and afaik, /home/marc05 _is_ a real filesystem. Am i wrong?
Another solution says that I'd have to share / which you know is a security risk.
And, by the way, the share above

Code:

/var/www        192.168.2.239(rw,root_squash,subtree_check)
it is mounted at startup without any trouble.

I used to mount server's /home/marc05 on my last Debian installation and everything was fine. I don't know if something changed or if I'm having security issues.
Anyway, thanks for your time. Have a great day!

evo2 11-09-2009 06:53 PM

Hi,

Quote:

Originally Posted by antixsuperstar (Post 3750928)
I used to mount server's /home/marc05 on my last Debian installation and everything was fine. I don't know if something changed or if I'm having security issues.

You didn't say if it was the server or the client that was upgraded. If it was the server, try having a look in the changelog in /usr/share/doc/nfs-kernel-server, if the client have look on your client machine at the changelog for nfs-common.

HTH,

Evo2.

AlucardZero 11-09-2009 06:56 PM

What is the output of, on both machines,
Code:

showmount -e serveraddress
?

Does
Code:

/usr/sbin/exportfs -a
on the server fix it?

antixsuperstar 11-20-2009 01:35 PM

Quote:

Originally Posted by AlucardZero (Post 3750956)
What is the output of, on both machines,
Code:

showmount -e serveraddress
?


The output on the client (ubuntu 9.10) and the server (debian etch, as mentioned) is the same:
Code:

Export list for 192.168.2.230:
/var/www    192.168.2.239
/home/marc05 192.198.2.239

which is the desired setting.
Quote:

Originally Posted by AlucardZero (Post 3750956)
Does
Code:

/usr/sbin/exportfs -a
on the server fix it?

No, it causes no effect on current behavior :(
Thanks for your time! :)

antixsuperstar 11-20-2009 01:40 PM

Quote:

Originally Posted by evo2 (Post 3750954)
You didn't say if it was the server or the client that was
upgraded.

The server was reinstalled. I'm not sure if upgraded, but it was reinstalled.
Quote:

Originally Posted by evo2 (Post 3750954)
If it was the server, try having a look in the changelog in /usr/share/doc/nfs-kernel-server, if the client have look on your client machine at the changelog for nfs-common.

OK. I'll try that. Thanks! :)


All times are GMT -5. The time now is 10:53 PM.