2003-10-29 10:00:03

by Gareth

[permalink] [raw]
Subject: Premission denied

Hi Guys

I'm trying to install Debian on a Cobalt Raq2, this is installed using NFS
running on a remote server, but am having problems with NFS. I can't even
mount an NFS drive locally.

I'm running RH8.0, and nfs-utils 1.0.6.

I've got the following entries in my /etc/export file

/nfsroot 192.168.17.0/255.255.255.0(ro)
/mnt/nfsroot 192.168.17.0/255.255.255.0(ro)

My hosts.allow and hosts.deny are completely empty, I assume this allows
everyone and anyone access. I have also disabled my firewall, iptables
during testing.

When I run 'showmount -e localhost', nothing is returned :-(

I am running 'exportfs -ra' after making changes to /etc/exports.

Running 'rpcinfo -p' produces the following....

program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 32768 status
100024 1 tcp 32768 status
391002 2 tcp 32769 sgi_fam
100011 1 udp 849 rquotad
100011 2 udp 849 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100021 1 udp 32788 nlockmgr
100021 3 udp 32788 nlockmgr
100021 4 udp 32788 nlockmgr
100005 1 udp 867 mountd
100005 1 tcp 870 mountd
100005 2 udp 867 mountd
100005 2 tcp 870 mountd
100005 3 udp 867 mountd
100005 3 tcp 870 mountd

When I try to mount an NFS drive (even locally), I get the following error
on the screen...

# mount paris:/nfsroot /tmp/test
mount: paris:/nfsroot failed, reason given by server: Permission denied

In /var/log/messages, I get...

Oct 29 09:25:44 paris rpc.mountd: Fake hostname paris.bim for 192.168.17.4
- forward lookup doesn't match reverse
Oct 29 09:25:44 paris rpc.mountd: refused mount request from 192.168.17.4
for /nfsroot (/): no export entry
Oct 29 09:29:09 paris rpc.mountd: export request from 127.0.0.1
Oct 29 09:39:37 paris rpc.mountd: refused mount request from paris.bim for
/nfsroot (/): no export entry

Someone at work suggested its a reverse DNS problem... but running
nslookup hostname returns my IP address, and vice versa.

Sorry this post is long... has anyone got any useful suggestions?



Gareth


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs


2003-10-29 21:58:11

by Chip Salzenberg

[permalink] [raw]
Subject: Re: Premission denied

According to Gareth:
> Oct 29 09:25:44 paris rpc.mountd: Fake hostname paris.bim for 192.168.17.4
> - forward lookup doesn't match reverse
> Oct 29 09:25:44 paris rpc.mountd: refused mount request from 192.168.17.4
> for /nfsroot (/): no export entry
> Oct 29 09:29:09 paris rpc.mountd: export request from 127.0.0.1
> Oct 29 09:39:37 paris rpc.mountd: refused mount request from paris.bim for
> /nfsroot (/): no export entry

You have two failures there. One says DNS, the other doesn't.

> Someone at work suggested its a reverse DNS problem... but running
> nslookup hostname returns my IP address, and vice versa.

The log says there was a reverse DNS problem. It says it clearly,
right there in the log. Are you suggesting that it's lying?

"The error message! Read the error message!"
--
Chip Salzenberg - a.k.a. - <[email protected]>
"I wanted to play hopscotch with the impenetrable mystery of existence,
but he stepped in a wormhole and had to go in early." // MST3K


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2003-10-29 22:46:24

by Gareth

[permalink] [raw]
Subject: RE: Premission denied

> -----Original Message-----
> From: Chip Salzenberg
> > Oct 29 09:25:44 paris rpc.mountd: Fake hostname paris.bim for
> 192.168.17.4
> > - forward lookup doesn't match reverse
> > Oct 29 09:25:44 paris rpc.mountd: refused mount request from
> 192.168.17.4
> > for /nfsroot (/): no export entry
> > Oct 29 09:29:09 paris rpc.mountd: export request from 127.0.0.1
> > Oct 29 09:39:37 paris rpc.mountd: refused mount request from
> paris.bim for
> > /nfsroot (/): no export entry
>
> You have two failures there. One says DNS, the other doesn't.
>
> > Someone at work suggested its a reverse DNS problem... but running
> > nslookup hostname returns my IP address, and vice versa.
>
> The log says there was a reverse DNS problem. It says it clearly,
> right there in the log. Are you suggesting that it's lying?

LOL! Of course I'm not saying its lying...LOL

I read the log file too... but I'm not sure why the error is there, given a
reverse lookup works fine. It's also the first time the error appeared,
despite hours of testing - and it hasn't reappeared since.


Gareth



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2003-10-29 22:49:26

by Chip Salzenberg

[permalink] [raw]
Subject: Re: Premission denied

According to Gareth:
> I'm not sure why the error is there, given a reverse lookup works
> fine. It's also the first time the error appeared, despite hours of
> testing - and it hasn't reappeared since.

Transient DNS failures are not unheard of. :-,
--
Chip Salzenberg - a.k.a. - <[email protected]>
"I wanted to play hopscotch with the impenetrable mystery of existence,
but he stepped in a wormhole and had to go in early." // MST3K


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2003-10-30 05:25:05

by NeilBrown

[permalink] [raw]
Subject: Re: Re: Premission denied

On Wednesday October 29, [email protected] wrote:
> According to Gareth:
> > Oct 29 09:25:44 paris rpc.mountd: Fake hostname paris.bim for 192.168.17.4
> > - forward lookup doesn't match reverse
> > Oct 29 09:25:44 paris rpc.mountd: refused mount request from 192.168.17.4
> > for /nfsroot (/): no export entry
> > Oct 29 09:29:09 paris rpc.mountd: export request from 127.0.0.1
> > Oct 29 09:39:37 paris rpc.mountd: refused mount request from paris.bim for
> > /nfsroot (/): no export entry
>
> You have two failures there. One says DNS, the other doesn't.
>
> > Someone at work suggested its a reverse DNS problem... but running
> > nslookup hostname returns my IP address, and vice versa.
>
> The log says there was a reverse DNS problem. It says it clearly,
> right there in the log. Are you suggesting that it's lying?

Funny, but I don't see the letters "DNS" in the log at all :-)

What does /etc/nsswitch.conf say about hosts? Does "files" come before
"dns"?
If so, what does
grep 192.168.17.4 /etc/hosts | head -1
show? Presumably paris.bim.
But what does
grep paris.bim /etc/hosts | head -1
show? My guest is *not* 192.168.17.4

NeilBrown


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2003-10-30 11:58:50

by Gareth

[permalink] [raw]
Subject: Re: Re: Premission denied

>> > Someone at work suggested its a reverse DNS problem... but running
>> > nslookup hostname returns my IP address, and vice versa.
>>
>> The log says there was a reverse DNS problem. It says it clearly,
>> right there in the log. Are you suggesting that it's lying?
>
> Funny, but I don't see the letters "DNS" in the log at all :-)
>
> What does /etc/nsswitch.conf say about hosts? Does "files" come before
> "dns"?

files is before dns...

the only entries in my /etc/hosts are...

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.17.4 paris.bim paris

does that look okay?

Gareth


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2003-10-31 01:19:36

by NeilBrown

[permalink] [raw]
Subject: Re: Re: Premission denied

On Thursday October 30, [email protected] wrote:
> >> > Someone at work suggested its a reverse DNS problem... but running
> >> > nslookup hostname returns my IP address, and vice versa.
> >>
> >> The log says there was a reverse DNS problem. It says it clearly,
> >> right there in the log. Are you suggesting that it's lying?
> >
> > Funny, but I don't see the letters "DNS" in the log at all :-)
> >
> > What does /etc/nsswitch.conf say about hosts? Does "files" come before
> > "dns"?
>
> files is before dns...
>
> the only entries in my /etc/hosts are...
>
> # Do not remove the following line, or various programs
> # that require network functionality will fail.
> 127.0.0.1 localhost.localdomain localhost
> 192.168.17.4 paris.bim paris
>
> does that look okay?

Yes it does. Which makes it all very strange.
Looking back at the original message: if /etc/exports is

/nfsroot 192.168.17.0/255.255.255.0(ro)
/mnt/nfsroot 192.168.17.0/255.255.255.0(ro)

then hostname lookup shouldn't matter.
Also:

Oct 29 09:25:44 paris rpc.mountd: Fake hostname paris.bim for 192.168.17.4 - forward lookup doesn't match reverse
Oct 29 09:25:44 paris rpc.mountd: refused mount request from 192.168.17.4 for /nfsroot (/): no export entry
Oct 29 09:29:09 paris rpc.mountd: export request from 127.0.0.1
Oct 29 09:39:37 paris rpc.mountd: refused mount request from paris.bim for /nfsroot (/): no export entry

seems to indicate that at 09:39:37 hostname lookup did the right
thing.
But either way, "no export entry" was found.

What is in /var/lib/nfs/?tab ??

NeilBrown


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs