LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-21-2011, 07:58 PM   #1
timjowers
LQ Newbie
 
Registered: Apr 2006
Posts: 27

Rep: Reputation: 15
Unhappy Tried everything but still get: "mount.nfs: access denied by server while mounting"


Tried to setup server to export a fileshare:
[root@monsterfc /]# cat /etc/exports
/mnt/test 192.168.0.0/32(rw,sync,no_root_squash)

[root@monsterfc /]# showmount -e 192.168.0.101
export list for 192.168.0.101:
/mnt/test 192.168.0.0/32
[root@monsterfc /]# uname -a
Linux monsterfc 2.6.34.7-63.fc13.i686.PAE #1 SMP Fri Dec 3 12:28:58 UTC 2010 i686 i686 i386 GNU/Linux

But the darn laptop cannot connect! I get access denied!
[root@gaateboox tim]# showmount -e 192.168.0.101
Export list for 192.168.0.101:
/mnt/test 192.168.0.0/32
[root@gaateboox tim]# mount.nfs 192.168.0.101:/mnt/test server
mount.nfs: access denied by server while mounting 192.168.0.101:/mnt/test
[root@gaateboox tim]# mount -t nfs -o nfsvers=3 192.168.0.101:/mnt/test /mnt/server
mount.nfs: access denied by server while mounting 192.168.0.101:/mnt/test
[root@gaateboox tim]# mount -t nfs -o nfsvers=3 192.168.0.101:/mnt/test /mnt/server
mount.nfs: access denied by server while mounting 192.168.0.101:/mnt/test
[root@gaateboox tim]# mount.nfs 192.168.0.101:/mnt/test servermount.nfs: access denied by server while mounting 192.168.0.101:/mnt/test
[root@gaateboox tim]# uname -a
Linux gaateboox 2.6.35.12-88.fc14.i686 #1 SMP Thu Mar 31 22:12:38 UTC 2011 i686 i686 i386 GNU/Linux

Any ideas what else to try? (I've tried alot).
Fedora 14 to Fedora 13.
 
Old 04-21-2011, 08:03 PM   #2
timjowers
LQ Newbie
 
Registered: Apr 2006
Posts: 27

Original Poster
Rep: Reputation: 15
Angry Works in reverse

In reverse it works fine though:
[root@gaateboox tim]# cat /etc/exports
/home/tim/ 192.168.0.0/24(rw,sync)


And connecting:
root@monsterfc tim]# showmount -e 192.168.0.103
Export list for 192.168.0.103:
/home/tim 192.168.0.0/24
[root@monsterfc tim]# mount 192.168.0.103:/home/tim /mnt/test

Is there someway to force an update of the NFS stuff on the mosterfc computer?
 
Old 04-21-2011, 08:12 PM   #3
timjowers
LQ Newbie
 
Registered: Apr 2006
Posts: 27

Original Poster
Rep: Reputation: 15
Some permission issue or something. Not sure what. I can get to one directory.
[root@gaateboox tim]# showmount -e 192.168.0.101
Export list for 192.168.0.101:
/home/NFS-share 192.168.0.0/24
/home/tim 192.168.0.0/24
/mnt/test 192.168.0.0/32

then this works:
[root@gaateboox tim]# mount.nfs 192.168.0.101:/home/NFS-share /mnt/server
mount.nfs: access denied by server while mounting (null)
[root@gaateboox tim]# umount /mnt/server
[root@gaateboox tim]# mount.nfs 192.168.0.101:/home/NFS-share /mnt/server
[root@gaateboox tim]# ls /mnt/server/
test.text

Gets even more frustrating.
[root@gaateboox tim]# umount /mnt/server
[root@gaateboox tim]# mount.nfs 192.168.0.101:/home/tim /mnt/server
[root@gaateboox tim]# ls /mnt/server
ls: cannot open directory /mnt/server: Permission denied
 
Old 04-21-2011, 08:23 PM   #4
timjowers
LQ Newbie
 
Registered: Apr 2006
Posts: 27

Original Poster
Rep: Reputation: 15
hehe, this works around it. (For crying out loud!)
[root@monsterfc NFS-share]# pwd
/home/NFS-share
[root@monsterfc NFS-share]# ln -s /home/tim hometim

And so,
[root@gaateboox tim]# umount /mnt/server
umount: /mnt/server: not mounted
[root@gaateboox tim]# mount.nfs 192.168.0.101:/home/NFS-share /mnt/server
[root@gaateboox tim]# ls /mnt/server/
hometim test.text
[root@gaateboox tim]# ls /mnt/server/hometim
....

This appears to be the only thing different:
[root@monsterfc NFS-share]# ls -la /home
total 16
drwxr-xr-x. 4 root root 4096 Dec 18 08:21 .
dr-xr-xr-x. 24 root root 4096 Apr 16 05:53 ..
drwxr-xr-x 2 root root 4096 Apr 21 21:14 NFS-share
drwx------. 49 tim tim 4096 Apr 21 21:15 tim
 
  


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
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
"sudo mount -a" works perfect but permission denied when mounting on startup, why? aaron4katie Linux - Software 10 01-11-2007 10:16 AM
Can't access mounted NFS directory: "permission denied" SparceMatrix Linux - General 6 03-08-2003 01:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

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