Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Sep 2000 11:01:47 -0400
From:      "Matthew Emmerton" <matt@gsicomp.on.ca>
To:        "Otter" <otterr@telocity.com>, "Odhiambo Washington" <vedette@iconnect.co.ke>, "Salvo Bartolotta" <bartequi@inwind.it>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: PORTMAP
Message-ID:  <001701c01b38$0d9fd130$1200a8c0@zircon>
References:  <HLEDJBJKDDPDJBMGCLPPIEGNCCAA.otterr@telocity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> }>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
> }
> }On 9/10/00, 2:43:14 PM, Odhiambo Washington <vedette@iconnect.co.ke>
> }wrote regarding PORTMAP:
> }
> }> Hello pals,
> }> I need to know whether I will be calling for trouble
> }disabling portmap
> }and
> }> how to do it. This is on FBSD 3.4-R. Some guy seems to be so busy
> }scanning
> }> my network and I guess this is a way to settle the score
> }with him;-)
> }
> }> -Wash
> }
> }Dear Odhiambo Washington,
> }
> }the short answer is rc.conf(5), but today is Sunday :-)
> }
> }/etc/rc.conf:
> }
> }[...]
> }portmap_enable="NO"
> }[...]
> }
> }This won't start portmap at boot time.
> }
> }Best regards,
> }Salvo
> }
> Salvo (or anyone else),
> The rc.conf file is an easy one. As I sit here and think about those
> in a mission critical environment, and the changes they might need to
> make after getting the OS installed and in production... Is there any
> way to make changes to the rc.conf, and somehow
> restart/reinitialize/etc those changes without rebooting? Maybe
> sysctl? I've been looking at the man page for it and don't see
> anything that would work there. Anyone have a clue? I don't.
> -Otter

The easy way is to look at the various /etc/rc.* scripts and determine how
the options take effect.  In the case of simple ones like portmap_enable,
they just enable loading of a daemon.  Hence, to disable portmap without
rebooting, just do a 'ps -ax' and find the PID of portmap, and then use kill
to terminate it.  Voila!

--
Matthew Emmerton
GSI Computer Services
+1 (800) 217-5409 (Canada)





To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001701c01b38$0d9fd130$1200a8c0>