This is a discussion on Problems with nfs and portmap within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hello, I try to set-up an nfs server, but get problems that seem coming from portmap. I've two machines ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| |||
| Gauthier wrote: > 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 ? rpc.portmap has to be running on the client as well as the server. That may be your trouble. Slackware comes with a nice script for starting and stopping it: /etc/rc.d/rc.portmap start If you make this script executable, it will start portmap at boot time. > By the way, where can I find the correct syntax of > /etc/hosts.(allow|deny) on my slackware ? I doesn't find any manpage, > info file, or so... man 5 hosts_access Jeffrey |
| ||||
| Le Wed, 08 Sep 2004 08:01:10 -0700, Jeffrey Froman <jeffrey@fro.man> a écrit: > rpc.portmap has to be running on the client as well as the server. That may > be your trouble. That was (!) my trouble. Now it works, many thanks, -- ^^ Gauthier (_____/°°-ç | \_`-" )/@mmm|| \nn \nn FOE-Belgium : http://www.amisdelaterre.be |