[vox-tech] NFS mount "RPC: Timed out" error

Peter Jay Salzman vox-tech@lists.lugod.org
Mon, 14 Jul 2003 16:36:13 -0700


On Mon 14 Jul 03,  4:05 PM, Ted Deppner <ted@psyber.com> said:
> On Mon, Jul 14, 2003 at 03:06:46PM -0700, Ken Herron wrote:
> > Err, isn't hosts.allow the TCP wrappers config file? NFS usually runs 
> > over udp in a lan environment; I don't see how TCP wrappers could be 
> > involved.
> 
> True, but many programs compile against the tcpwrappers library and honor
> it, as linux nfs does.  Note that portmap and mountd are usually
> separated, each requiring it's own allow.
> 
> eg:
> 
> portmap: 192.168.0.0/255.255.255.0
> mountd: 192.168.0.0/255.255.255.0

p@satan$ locate nfsd | grep bin
/usr/sbin/rpc.nfsd
p@satan$ ldd /usr/sbin/rpc.nfsd
        /usr/lib/libtrash/libtrash.so => /usr/lib/libtrash/libtrash.so (0x40012000)
        libc.so.6 => /lib/libc.so.6 (0x4002a000)
        libdl.so.2 => /lib/libdl.so.2 (0x4013a000)
        libm.so.6 => /lib/libm.so.6 (0x4013d000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
p@satan$ locate portmap | grep bin
/sbin/portmap
p@satan$ ldd /sbin/portmap 
        /usr/lib/libtrash/libtrash.so => /usr/lib/libtrash/libtrash.so (0x40012000)
        libwrap.so.0 => /lib/libwrap.so.0 (0x4002a000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x40032000)
        libc.so.6 => /lib/libc.so.6 (0x40045000)
        libdl.so.2 => /lib/libdl.so.2 (0x40155000)
        libm.so.6 => /lib/libm.so.6 (0x40158000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

ted, it looks like portmap is linked against wrappers but nfsd isn't.
at least on my system.

if it's not linked against libwrap, then it must be explicitly stated in
in inetd.conf type config file.

at least, that's my understanding...

pete

-- 
GPG Instructions: http://www.dirac.org/linux/gpg
GPG Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D