All of lore.kernel.org
 help / color / mirror / Atom feed
* Premission denied
@ 2003-10-29  9:59 Gareth
  2003-10-29 21:58 ` Chip Salzenberg
  0 siblings, 1 reply; 7+ messages in thread
From: Gareth @ 2003-10-29  9:59 UTC (permalink / raw)
  To: nfs

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  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Premission denied
  2003-10-29  9:59 Premission denied Gareth
@ 2003-10-29 21:58 ` Chip Salzenberg
  2003-10-29 22:46   ` Gareth
  2003-10-30  5:24   ` Neil Brown
  0 siblings, 2 replies; 7+ messages in thread
From: Chip Salzenberg @ 2003-10-29 21:58 UTC (permalink / raw)
  To: Gareth; +Cc: nfs

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. -               <chip@pobox.com>
"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  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: Premission denied
  2003-10-29 21:58 ` Chip Salzenberg
@ 2003-10-29 22:46   ` Gareth
  2003-10-29 22:49     ` Chip Salzenberg
  2003-10-30  5:24   ` Neil Brown
  1 sibling, 1 reply; 7+ messages in thread
From: Gareth @ 2003-10-29 22:46 UTC (permalink / raw)
  To: nfs; +Cc: Chip Salzenberg

> -----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  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Premission denied
  2003-10-29 22:46   ` Gareth
@ 2003-10-29 22:49     ` Chip Salzenberg
  0 siblings, 0 replies; 7+ messages in thread
From: Chip Salzenberg @ 2003-10-29 22:49 UTC (permalink / raw)
  To: Gareth; +Cc: nfs

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. -               <chip@pobox.com>
"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  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Re: Premission denied
  2003-10-29 21:58 ` Chip Salzenberg
  2003-10-29 22:46   ` Gareth
@ 2003-10-30  5:24   ` Neil Brown
  2003-10-30 11:58     ` Gareth
  1 sibling, 1 reply; 7+ messages in thread
From: Neil Brown @ 2003-10-30  5:24 UTC (permalink / raw)
  To: Chip Salzenberg; +Cc: Gareth, nfs

On Wednesday October 29, chip@pobox.com 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  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Re: Premission denied
  2003-10-30  5:24   ` Neil Brown
@ 2003-10-30 11:58     ` Gareth
  2003-10-31  1:19       ` Neil Brown
  0 siblings, 1 reply; 7+ messages in thread
From: Gareth @ 2003-10-30 11:58 UTC (permalink / raw)
  To: Neil Brown; +Cc: nfs

>> > 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  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Re: Premission denied
  2003-10-30 11:58     ` Gareth
@ 2003-10-31  1:19       ` Neil Brown
  0 siblings, 0 replies; 7+ messages in thread
From: Neil Brown @ 2003-10-31  1:19 UTC (permalink / raw)
  To: Gareth; +Cc: nfs

On Thursday October 30, gareth@bim7.com 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  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-10-31  1:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-29  9:59 Premission denied Gareth
2003-10-29 21:58 ` Chip Salzenberg
2003-10-29 22:46   ` Gareth
2003-10-29 22:49     ` Chip Salzenberg
2003-10-30  5:24   ` Neil Brown
2003-10-30 11:58     ` Gareth
2003-10-31  1:19       ` Neil Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.