LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Tried everything but still get: "mount.nfs: access denied by server while mounting" (https://www.linuxquestions.org/questions/linux-networking-3/tried-everything-but-still-get-mount-nfs-access-denied-by-server-while-mounting-876420/)

timjowers 04-21-2011 08:58 PM

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.

timjowers 04-21-2011 09:03 PM

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?

timjowers 04-21-2011 09:12 PM

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

timjowers 04-21-2011 09:23 PM

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


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