Skip to contentSkip to conversation

Premission denied

DISCUSSION Gareth 3 participants 7 messages Oct 29, 2003 – Oct 31, 2003

Subsystems (2)
lore
Share & tools
lore

Gareth

author
#0 lore raw

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

#1 lore raw

According to Gareth:

Quoted 7 lines
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.

Quoted 2 lines

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!"

Signature · 13 lines
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
author
#2 lore raw
Quoted 13 lines

-----Original Message-----
From: Chip Salzenberg

Quoted 1 line
Oct 29 09:25:44 paris rpc.mountd: Fake hostname paris.bim for

192.168.17.4

Quoted 2 lines

- forward lookup doesn't match reverse

Oct 29 09:25:44 paris rpc.mountd: refused mount request from

192.168.17.4

Quoted 3 lines

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

Quoted 1 line

/nfsroot (/): no export entry

Quoted 7 lines

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

Quoted 2 lines

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

#3 lore raw

According to Gareth:

Quoted 3 lines

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. :-,

Signature · 13 lines
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
#4 lore raw
In reply to Chip Salzenberg
Quoted 9 lines · On Wednesday October 29, [email protected] wrote:

According to Gareth:

Quoted 7 lines
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

Quoted 7 lines

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

Quoted 2 lines

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

author
#5 lore raw
Quoted 10 lines
Quoted 5 lines
Quoted 2 lines

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

#6 lore raw
Quoted 13 lines · On Thursday October 30, [email protected] wrote:
Quoted 10 lines
Quoted 5 lines
Quoted 2 lines

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...

Quoted 8 lines

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