From owner-freebsd-questions Sun Sep 10 8: 2:26 2000 Delivered-To: freebsd-questions@freebsd.org Received: from xena.gsicomp.on.ca (cr677933-a.ktchnr1.on.wave.home.com [24.42.130.87]) by hub.freebsd.org (Postfix) with ESMTP id 7961737B42C for ; Sun, 10 Sep 2000 08:02:23 -0700 (PDT) Received: from zircon (matt.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.10.1/8.9.2) with SMTP id e8AF1WG06576; Sun, 10 Sep 2000 11:01:32 -0400 (EDT) (envelope-from matt@gsicomp.on.ca) Message-ID: <001701c01b38$0d9fd130$1200a8c0@zircon> From: "Matthew Emmerton" To: "Otter" , "Odhiambo Washington" , "Salvo Bartolotta" Cc: References: Subject: Re: PORTMAP Date: Sun, 10 Sep 2000 11:01:47 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > }>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<< > } > }On 9/10/00, 2:43:14 PM, Odhiambo Washington > }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