Unix Technical Forum

Problems with nfs and portmap

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 03:19 PM
Jeffrey Froman
 
Posts: n/a
Default Re: Problems with nfs and portmap

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 03:20 PM
Gauthier
 
Posts: n/a
Default Re: Problems with nfs and portmap

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:42 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com