Networking Forums

Networking Forums > Computer Networking > Linux Networking > cant nfs mount problem

Reply
Thread Tools Display Modes

cant nfs mount problem

 
 
p cooper
Guest
Posts: n/a

 
      08-21-2005, 09:22 PM
client (gentoo linux)
dads paul # mount -t nfs 192.168.0.1:tmp/test /mnt/tmp
mount: 192.168.0.1:tmp/test failed, reason given by server: Permission
denied
client

dads paul # rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100021 1 udp 32768 nlockmgr
100021 3 udp 32768 nlockmgr
100021 4 udp 32768 nlockmgr
100021 1 tcp 32768 nlockmgr
100021 3 tcp 32768 nlockmgr
100021 4 tcp 32768 nlockmgr
100005 1 udp 626 mountd
100005 1 tcp 629 mountd
100005 2 udp 626 mountd
100005 2 tcp 629 mountd
100005 3 udp 626 mountd
100005 3 tcp 629 mountd
dads paul #

no firewall on client

server (gentoo linux)
renada vexim # grep ^[A-Za-z] /etc/shorewall/rules
ACCEPT loc fw tcp 53
ACCEPT loc fw tcp 68
ACCEPT all all tcp 22
ACCEPT loc fw tcp 25
ACCEPT all all tcp 80
ACCEPT all all tcp 10000
AllowSMB fw loc
AllowSMB loc fw
DROP net fw icmp 8
ACCEPT all all udp 123
ACCEPT all all udp 111
ACCEPT all all tcp 111
ACCEPT all all udp 2049
ACCEPT all all tcp 2049
ACCEPT all all udp 32765:32770
grenada vexim # cat /etc/exports
# /etc/exports: NFS file systems being exported. See exports(5).

/tmp/test 192.168.0.0/255.255.255.
(rw,sync,no_root_squash,no_all_squash,no_subtree_c heck)

grenada vexim # exportfs
/tmp/test 192.168.0.0/255.255.255.0
grenada vexim #
grenada vexim # tail -n1 /var/log/messages
Aug 21 22:21:20 grenada rpc.mountd: authenticated mount request from
dads.home.network:852 for /tmp/test (/tmp/test)
grenada vexim #

FWIW doesnt mount with he shorewall firewall stopped.

so why cant I mount the share ?
 
Reply With Quote
 
 
 
 
Bill Marcum
Guest
Posts: n/a

 
      08-22-2005, 02:04 AM
On Sun, 21 Aug 2005 21:22:58 GMT, p cooper
<pdconetwofour_numbers_@yahoo.co.uk> wrote:
> client (gentoo linux)
> dads paul # mount -t nfs 192.168.0.1:tmp/test /mnt/tmp
> mount: 192.168.0.1:tmp/test failed, reason given by server: Permission
> denied
> client
>

192.168.0.1:/tmp/test


--
Knowledge, sir, should be free to all!
-- Harry Mudd, "I, Mudd", stardate 4513.3
 
Reply With Quote
 
p cooper
Guest
Posts: n/a

 
      08-22-2005, 02:25 PM
Bill Marcum wrote:

> On Sun, 21 Aug 2005 21:22:58 GMT, p cooper
> <pdconetwofour_numbers_@yahoo.co.uk> wrote:
>> client (gentoo linux)
>> dads paul # mount -t nfs 192.168.0.1:tmp/test /mnt/tmp
>> mount: 192.168.0.1:tmp/test failed, reason given by server: Permission
>> denied
>> client
>>

> 192.168.0.1:/tmp/test
>
>

dads paul # mount -t nfs 192.168.0.1:/tmp/test /mnt/tmp
mount: 192.168.0.1:/tmp/test failed, reason given by server: Permission
denied
dads paul #

Ive tried all possible permutations of this. I had tried the correct one as
well

still doesnt work
 
Reply With Quote
 
Robert
Guest
Posts: n/a

 
      08-22-2005, 11:27 PM
p cooper wrote:
> dads paul # mount -t nfs 192.168.0.1:/tmp/test /mnt/tmp
> mount: 192.168.0.1:/tmp/test failed, reason given by server: Permission
> denied
> dads paul #
>
> Ive tried all possible permutations of this. I had tried the correct one as
> well
>
> still doesnt work


Missed most of the thread, but if it hasn't be covered already...

When I've seen this, it is either;

* /etc/exports not setup correctly.
* exportfx hasn't been run. try exportfs -rv
* blocked firewall.
* user (root in this case) doesn't have rights on server.
* all the nfs daemons are not loaded, such as portmap in Slackware.

If that isn't it, hope someone has an answer.

--
Robert
 
Reply With Quote
 
Hans-Juergen Lange
Guest
Posts: n/a

 
      08-24-2005, 07:07 AM
p cooper wrote:
> client (gentoo linux)
> dads paul # mount -t nfs 192.168.0.1:tmp/test /mnt/tmp
> mount: 192.168.0.1:tmp/test failed, reason given by server: Permission
> denied
> client
>
> dads paul # rpcinfo -p
> program vers proto port
> 100000 2 tcp 111 portmapper
> 100000 2 udp 111 portmapper
> 100003 2 udp 2049 nfs
> 100003 3 udp 2049 nfs
> 100003 2 tcp 2049 nfs
> 100003 3 tcp 2049 nfs
> 100021 1 udp 32768 nlockmgr
> 100021 3 udp 32768 nlockmgr
> 100021 4 udp 32768 nlockmgr
> 100021 1 tcp 32768 nlockmgr
> 100021 3 tcp 32768 nlockmgr
> 100021 4 tcp 32768 nlockmgr
> 100005 1 udp 626 mountd
> 100005 1 tcp 629 mountd
> 100005 2 udp 626 mountd
> 100005 2 tcp 629 mountd
> 100005 3 udp 626 mountd
> 100005 3 tcp 629 mountd
> dads paul #
>
> no firewall on client
>
> server (gentoo linux)
> renada vexim # grep ^[A-Za-z] /etc/shorewall/rules
> ACCEPT loc fw tcp 53
> ACCEPT loc fw tcp 68
> ACCEPT all all tcp 22
> ACCEPT loc fw tcp 25
> ACCEPT all all tcp 80
> ACCEPT all all tcp 10000
> AllowSMB fw loc
> AllowSMB loc fw
> DROP net fw icmp 8
> ACCEPT all all udp 123
> ACCEPT all all udp 111
> ACCEPT all all tcp 111
> ACCEPT all all udp 2049
> ACCEPT all all tcp 2049
> ACCEPT all all udp 32765:32770
> grenada vexim # cat /etc/exports
> # /etc/exports: NFS file systems being exported. See exports(5).
>
> /tmp/test 192.168.0.0/255.255.255.
> (rw,sync,no_root_squash,no_all_squash,no_subtree_c heck)
>
> grenada vexim # exportfs
> /tmp/test 192.168.0.0/255.255.255.0
> grenada vexim #
> grenada vexim # tail -n1 /var/log/messages
> Aug 21 22:21:20 grenada rpc.mountd: authenticated mount request from
> dads.home.network:852 for /tmp/test (/tmp/test)
> grenada vexim #
>
> FWIW doesnt mount with he shorewall firewall stopped.
>
> so why cant I mount the share ?


Hi,

what kernel you are running? What NFS version? What machines?

A Sun solaris workstation can not mount an exported NFS directoy without
some changes in configuration.

It is possible to temporarily export a directory with the exportfs
command. Try this one.
There are some file in /var/lib/nfs which are needed for managing the
exports try to delete them. But some of them must be recreated with
touch command.
Try running the nfsd in debug mode. It then writes lots of messages into
your logfiles this may help to find the failure.

BR
Hans-Juergen Lange
 
Reply With Quote
 
Sarma
Guest
Posts: n/a

 
      08-25-2005, 06:35 PM
Try without root_squash, first.
Can you make sure root UIDs are same on both machines?
Can you make sure /tmp/test is owned by root on the server?
What you run exportfs -arv, were there any error messages?

> grenada vexim # cat /etc/exports
> # /etc/exports: NFS file systems being exported. See exports(5).
>
> /tmp/test 192.168.0.0/255.255.255.
> (rw,sync,no_root_squash,no_all_squash,no_subtree_c heck)
>
> grenada vexim # exportfs
> /tmp/test 192.168.0.0/255.255.255.0


 
Reply With Quote
 
p cooper
Guest
Posts: n/a

 
      08-25-2005, 08:31 PM
server
grenada webapps # uname -a
Linux grenada 2.6.11-hardened-r15 #2 Thu Jul 14 22:34:34 BST 2005 i686
Pentium III (Katmai) GenuineIntel GNU/Linux
grenada webapps #

root UID are the same (both gentoo linux)

grenada / # ls -la /tmp |grep -v 'sess*'
total 208
drwxrwxrwt 5 root root 280 Aug 25 21:19 .
drwxr-xr-x 19 root root 4096 Jul 25 21:51 ..
drwxrwxrwt 2 root root 40 Aug 23 22:22 .ICE-unix
drwxrwxrwt 2 root root 40 Aug 23 22:22 .X11-unix
drwxr-xr-x 2 root root 40 Aug 25 21:19 test
grenada webapps # rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 32769 status
100024 1 tcp 32768 status
100003 2 udp 2049 nfs
100003 2 tcp 2049 nfs
100021 1 udp 32770 nlockmgr
100021 3 udp 32770 nlockmgr
100021 1 tcp 32769 nlockmgr
100021 3 tcp 32769 nlockmgr
100005 1 udp 930 mountd
100005 1 tcp 933 mountd
100005 2 udp 930 mountd
100005 2 tcp 933 mountd
100005 3 udp 930 mountd
100005 3 tcp 933 mountd
grenada webapps #
grenada webapps # nano /etc/exports
grenada webapps # exportfs -rav
exporting 192.168.0.0/255.255.255.0:/tmp/test
grenada webapps # cat /etc/exports
# /etc/exports: NFS file systems being exported. See exports(5).

/tmp/test 192.168.0.0/255.255.255.0(rw,sync,)

grenada webapps # exportfs -rav
exporting 192.168.0.0/255.255.255.0:/tmp/test
grenada webapps #

client
dads Manuals # uname -a
Linux dads 2.6.11-gentoo-r4 #6 SMP Fri Aug 19 06:48:30 BST 2005 i686 AMD
Athlon(tm) processor AuthenticAMD GNU/Linux
dads Manuals #
dads Manuals # mount -t nfs 192.168.0.1:/tmp/test /mnt/tmp
mount: 192.168.0.1:/tmp/test failed, reason given by server: Permission
denied
dads Manuals #
dads Manuals # rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100021 1 udp 32768 nlockmgr
100021 3 udp 32768 nlockmgr
100021 4 udp 32768 nlockmgr
100021 1 tcp 32768 nlockmgr
100021 3 tcp 32768 nlockmgr
100021 4 tcp 32768 nlockmgr
100005 1 udp 667 mountd
100005 1 tcp 670 mountd
100005 2 udp 667 mountd
100005 2 tcp 670 mountd
100005 3 udp 667 mountd
100005 3 tcp 670 mountd
dads Manuals #
:-((

not sure how to start nfs with debugging on ( FWIW gentoo linux)

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba mount problem Vinicius 'Corvu' BR Linux Networking 0 07-31-2006 01:35 PM
HELP with autofs and NIS: How to override mount options on all mount points? theosib@gmail.com Linux Networking 0 03-04-2006 09:12 PM
NFS mount won't mount at boot, but mount -a works fine. BT Linux Networking 2 09-23-2004 09:37 PM
NFS mount problem - SUSE 9.1 Scott Myron Linux Networking 0 06-23-2004 04:46 PM
NFS Mount Problem mpierce Linux Networking 3 09-08-2003 09:40 AM



1 2 3 4 5 6 7 8 9 10 11