mount to NFS server failed

Jeff Vian jvian10 at charter.net
Mon Jul 18 04:56:39 UTC 2005


On Sun, 2005-07-17 at 18:23 -0400, sly wrote:
> Damian Menscher wrote:
> > On Sun, 17 Jul 2005, sly wrote:
> > 
> >> M. Lewis wrote:
> >>
> >>> sly wrote:
> >>>
> >>>> M. Lewis wrote:
> >>>>
> >>>>> sly wrote:
> >>>>>
> >>>>>> on the stkserver i shared with nfs the folder /mnt/stuff
> >>>>
> >>>>
> >>>> Jul 17 17:30:51 stkserver portmap[2894]: connect from 
> >>>> 222.169.100.101 to getport(nfs): request from unauthorized host
> >>>>
> >>>> on the server i had this:
> >>>>
> >>>> # cat /etc/hosts.allow
> >>>> portmap: 222.168.100. : 127.
> >>>>
> >>>> and also tried w/ this:
> >>>>
> >>>> # cat /etc/hosts.allow
> >>>> portmap: 222.168.100.101/255.255.255.0 : 127.
> >>>
> >>>
> >>>
> >>> Try (at least temporarily) removing the entry(s) from /etc/hosts.allow
> >>
> >>
> >> i modified the /etc/hosts.deny file to deny nothing and now it works!
> > 
> > 
> > You never told us you had an /etc/hosts.deny file.  Out of curiosity, 
> > what was in it?  Not that it should have mattered here anyway....  I 
> 
> i followed the instructions from a book, and it said the /etc/hosts.deny 
> should have:
> 
> portmap: ALL

well DUH,  you are trying to set up portmap for use in hosts.allow, and
here it was denied.  Deny always takes precedence over allow so of
course it was failing.

Whenever you are using entries in hosts.deny or hosts.allow, you always
check the other to make sure one does not override the other.

> 
> and as soon as i deleted this line it worked!
> 
> > suspect one of your other changes fixed the problem.
> > 
> > Damian Menscher
> 




More information about the users mailing list