Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Oct 2001 09:31:51 -0400
From:      "Chuck O'Donnell" <cao@bus.net>
To:        Mihail Atamanskij <a_taman@one.lv>
Cc:        "freebsd-questions@FreeBSD.ORG" <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>
In-Reply-To: <3207668.1003324589401.JavaMail.root@www1.one.lv>; from a_taman@one.lv on Wed, Oct 17, 2001 at 04:16:29PM %2B0300
References:  <3207668.1003324589401.JavaMail.root@www1.one.lv>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011017093151.A40473>