View Single Post

   
  #1 (permalink)  
Old 02-19-2008, 03:19 PM
Gauthier
 
Posts: n/a
Default Problems with nfs and portmap

Hello,

I try to set-up an nfs server, but get problems that seem coming from
portmap.

I've two machines with Slackware 9.1.0, the server is called fantasio
with 192.168.1.5 as IP, the client called spirou with 192.168.1.2.

root@fantasio:/home/gv# cat /etc/hosts.deny
#

portmap:ALL
lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL


# End of hosts.deny.

root@fantasio:/home/gv# cat /etc/hosts.allow
#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided by
# the '/usr/sbin/tcpd' server.
#
# Version: @(#)/etc/hosts.allow 1.00 05/28/93
#
# Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org
#
#

portmap:192.168.1.:ALLOW
lockd:192.168.1.:ALLOW
mountd:192.168.1.:ALLOW
rquotad:192.168.1.:ALLOW
statd:192.168.1.:ALLOW

root@fantasio:/home/gv# cat /etc/exports
/home/gv 192.168.1.0/255.255.255.0
/home/denis 192.168.1.0/255.255.255.0


When I try to mount one of these directories on spirou as root,
(I've not yet modified the /etc/fstab), after typing

[root@spirou]# mount -t nfs fantasio:/home/gv /mnt/

the shell doesn't become free, the process seems hang for a long time
(maybe 5'). That's not a problem of exports, because, "a contrario",
if I try to mount a directory not explicitly given in /etc/exports,
I get this response :

[root@spirou gv]# mount -t nfs fantasio:/home/other /mnt/hd
mount: fantasio:/home/other failed, reason given by server: Permission
non accordée

I see that in /var/log/messages on the server, I've such messages, once
the directory becomes (at last !) mounted:
Sep 8 14:30:14 fantasio rpc.mountd: authenticated mount request from \
spirou.champignac:849 for /home/gv (/home/gv)

The process of unmounting, on the other hand, gives no problem.
Sep 8 14:36:53 fantasio rpc.mountd: authenticated unmount request from \
spirou.champignac:852 for /home/gv (/home/gv)

But on the client, I've found that in /etc/messages :
Sep 8 14:39:11 spirou kernel: portmap: server localhost not responding, \
timed out

So, does someone see for which kind of problem it could be the symptom ?

By the way, where can I find the correct syntax of
/etc/hosts.(allow|deny) on my slackware ? I doens'nt find any manpage,
info file, or so...

Thanks in advance,


--
^^ Gauthier
(_____/°°-ç
| \_`-"
)/@mmm||
\nn \nn FOE-Belgium : http://www.amisdelaterre.be
Reply With Quote