From owner-freebsd-questions Wed Oct 17 6:32:14 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.c.bus.net (65-85-139-3.client.dsl.net [65.85.139.3]) by hub.freebsd.org (Postfix) with ESMTP id 893B737B40B for ; Wed, 17 Oct 2001 06:32:11 -0700 (PDT) Received: from ws100.c.bus.net (ws100.c.bus.net [192.168.1.10]) by mail.c.bus.net (Postfix) with ESMTP id EA4B476308; Wed, 17 Oct 2001 09:36:05 -0400 (EDT) Received: (from cao@localhost) by ws100.c.bus.net (8.11.3/8.11.3) id f9HDVqK40532; Wed, 17 Oct 2001 09:31:52 -0400 (EDT) (envelope-from cao) Date: Wed, 17 Oct 2001 09:31:51 -0400 From: "Chuck O'Donnell" To: Mihail Atamanskij Cc: "freebsd-questions@FreeBSD.ORG" Subject: Re: How I can Shutdown and delete the standard ftp server on the 4.3 release? Message-ID: <20011017093151.A40473@bus.net> References: <3207668.1003324589401.JavaMail.root@www1.one.lv> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3207668.1003324589401.JavaMail.root@www1.one.lv>; from a_taman@one.lv on Wed, Oct 17, 2001 at 04:16:29PM +0300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Oct 17, 2001 at 04:16:29PM +0300, Mihail Atamanskij wrote: > > Since ftpd is by default run from inetd, method one is to disable inetd by adding the following to /etc/rc.conf inetd_enable="NO" and "killall inetd" or reboot. Only do this if you don't need inetd running for any other reason. Method two leaves inetd running, and just disables ftpd. Disable ftpd in /etc/inetd.conf by commenting out the ftpd lines (be careful, there are two occurrences, one or IPv4 and one for IPv6) #ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l #ftp stream tcp6 nowait root /usr/libexec/ftpd ftpd -l then "kill -1 `cat /var/run/inetd.pid`" or reboot for changes to take effect. I haven't found the need to delete the /usr/libexec/ftpd binary, but you might feel differently. Good luck, Chuck To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message