LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 11-09-2009, 06:25 PM   #1
antixsuperstar
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Rep: Reputation: 0
Unhappy 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!
 
Old 11-09-2009, 06:53 PM   #2
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,431

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
Hi,

Quote:
Originally Posted by antixsuperstar View Post
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.
 
Old 11-09-2009, 06:56 PM   #3
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,647

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
What is the output of, on both machines,
Code:
showmount -e serveraddress
?

Does
Code:
/usr/sbin/exportfs -a
on the server fix it?
 
Old 11-20-2009, 01:35 PM   #4
antixsuperstar
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by AlucardZero View Post
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 View Post
Does
Code:
/usr/sbin/exportfs -a
on the server fix it?
No, it causes no effect on current behavior
Thanks for your time!
 
Old 11-20-2009, 01:40 PM   #5
antixsuperstar
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by evo2 View Post
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 View Post
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!
 
  


Reply

Tags
denied, mount, nfs, request


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 11:34 AM
NFS mount mount.nfs: access denied by server while mounting knockout_artist Linux - Newbie 2 11-26-2008 02:36 PM
NFS mount permission denied sidra Linux - Networking 10 03-03-2008 03:47 PM
NFS mount permission denied! naesyllek Linux - Networking 25 06-06-2007 04:24 AM
NFS mount: Permission denied toreric Linux - Networking 15 03-03-2006 11:33 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration