LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-02-2011, 02:19 PM   #1
ahoeffner
LQ Newbie
 
Registered: Aug 2011
Posts: 14

Rep: Reputation: Disabled
nfs mount returns access denied


server 192.168.0.10

cat /etc/export
/share 192.168.0.0/255.255.255.0(rw,no_root_squash)

I have run the exportfs -a


client 192.168.0.15
mount -t nfs server:share/ home/
mount.nfs: access denied by server while mounting server:share/
 
Old 09-02-2011, 02:44 PM   #2
droyden
Member
 
Registered: Feb 2007
Location: UK
Posts: 150

Rep: Reputation: 19
exportfs -rv

And try mount with -v
 
Old 09-02-2011, 02:48 PM   #3
ahoeffner
LQ Newbie
 
Registered: Aug 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
mount.nfs: timeout set for Fri Sep 2 21:49:36 2011
mount.nfs: trying text-based options 'vers=4,addr=192.168.0.10,clientaddr=192.168.0.15'
mount.nfs: mount(2): No such file or directory
mount.nfs: trying text-based options 'addr=192.168.0.10'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.0.10 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.0.10 prog 100005 vers 3 prot UDP port 35156
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting server:share/
 
Old 09-02-2011, 03:05 PM   #4
ahoeffner
LQ Newbie
 
Registered: Aug 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "192.168.0.0/255.255.255.0:/share".
Assuming default behaviour ('no_subtree_check').
NOTE: this default has changed since nfs-utils version 1.0.x

exporting 192.168.0.0/255.255.255.0:/share
 
Old 09-02-2011, 03:32 PM   #5
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,254

Rep: Reputation: 314Reputation: 314Reputation: 314Reputation: 314
You did
Code:
mount -t nfs server:share/ home/
it should be
Code:
mount -t nfs server:/share /home
or this was just a typo?
 
Old 09-02-2011, 03:37 PM   #6
ahoeffner
LQ Newbie
 
Registered: Aug 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
Actually its
mount -vt nfs server:share/ /home/ahoffner/home/

But I was standing in /home/ahoffner
 
Old 09-02-2011, 08:00 PM   #7
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468

Rep: Reputation: 72
From the client end, you can use showmount -e 192.168.0.10
To see if the client can 'see' the NFS share.
 
Old 09-03-2011, 02:14 AM   #8
droyden
Member
 
Registered: Feb 2007
Location: UK
Posts: 150

Rep: Reputation: 19
mount -vt nfs server:/share /home/ahoffner
 
Old 09-03-2011, 03:15 AM   #9
ahoeffner
LQ Newbie
 
Registered: Aug 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
I don't understand shit. Suddenly it worked
 
Old 09-04-2011, 03:32 AM   #10
droyden
Member
 
Registered: Feb 2007
Location: UK
Posts: 150

Rep: Reputation: 19
Because u had the slash / for the share name in the wrong place
 
Old 09-04-2011, 03:35 AM   #11
ahoeffner
LQ Newbie
 
Registered: Aug 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
Ahhhh, thanks a lot
 
  


Reply


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
[SOLVED] mount.nfs: access denied by server while mounting physnastr Linux - General 2 10-02-2011 03:33 PM
Tried everything but still get: "mount.nfs: access denied by server while mounting" timjowers Linux - Networking 3 04-21-2011 08:23 PM
mount.nfs: access denied by server while mounting DD554 Linux - Networking 1 05-08-2010 12:22 PM
NFS mount mount.nfs: access denied by server while mounting knockout_artist Linux - Newbie 2 11-26-2008 02:36 PM
mount.nfs: access denied by server while mounting mokrunka Linux - Networking 4 10-07-2008 12:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:18 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration