[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hosts.allow hosts.deny and nfs





Asher Frenkel wrote:

> On Tue, 13 Jan 1998, Erez Doron wrote:
>
> > I'm trying to let only one host ( named spud ) to mount nfs
> > on my linux.
> >
> > in linux i have hosts.allow:
> >
> > ALL : spud
> >
> > and hosts.deny :
> >
> > ALL : ALL
> >
> > if i remove the line in hosts.deny i can be accessed from anywhere
> > but if i leave it there, i cantmount linux's nfs on spud.
> >
> > what did i do wrong ?
> > ( i know tcpd is not involved in nfs, but portmap
> > also reads hosts.allow and hosts.deny )
> yes, if you use portmapper that uses tcpwrapper libs it will deny your
> access.
>
> what I can suggest to you is:
> 1. look in your syslog messages for the refuse, you'll learn more what it
>  is refusing. (maybe spud has bad reverse DNS etc)
> 2. put a FQDN instead of spud (i.e. ALL: spud.mydomain.org)
> 3. put spud's IP address in (i.e. ALL: 111.111.111.111)
>
> hope this helps,
>
> -Asher.
> .--------------------------------------------------------------------.
> | Asher Frenkel                            Unix System Administrator |
> | IBM Global Services, IBM Israel                                    |
> | Fax   : +972-3-6978115                        Phone: +972-3-6978946|
> | E-Mail:asher@ibm.net.il                              +972-3-6978687|
> `--------------------------------------------------------------------'

  Thanks, it did help, i replaced spud with it's IP adress.
  ( although spud apears in /etc/hosts)

strange that ALL : spud was good enough for tcpd ( telnet )
but not good enough for portmap. go figure !

Thanks
Erez