From owner-freebsd-questions@FreeBSD.ORG Sun Mar 6 14:04:03 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 71A2D16A4CE for ; Sun, 6 Mar 2005 14:04:03 +0000 (GMT) Received: from relay02.pair.com (relay02.pair.com [209.68.5.16]) by mx1.FreeBSD.org (Postfix) with SMTP id D906E43D31 for ; Sun, 6 Mar 2005 14:04:02 +0000 (GMT) (envelope-from ryan@confabulator.net) Received: (qmail 36829 invoked from network); 6 Mar 2005 14:04:02 -0000 Received: from unknown (HELO ?192.168.0.83?) (unknown) by unknown with SMTP; 6 Mar 2005 14:04:02 -0000 X-pair-Authenticated: 209.197.24.245 Received: from 127.0.0.1 (AVG SMTP 7.0.300 [266.5.5]); Sun, 06 Mar 2005 08:11:13 -0600 Message-ID: <422B0F80.5090807@confabulator.net> Date: Sun, 06 Mar 2005 08:11:12 -0600 From: "Ryan J. Cavicchioni" User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en To: FreeBSD Questions References: <810a540e05030417046fe6b101@mail.gmail.com> <44br9weves.fsf@be-well.ilk.org> In-Reply-To: <44br9weves.fsf@be-well.ilk.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=======AVGMAIL-422B0F82206A=======" X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Re: Running vsftpd standalone vs inetd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Mar 2005 14:04:03 -0000 --=======AVGMAIL-422B0F82206A======= Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Hi Pat, I wrote this to startup vsftpd. It is not the prettiest script and I am sure there is a way to do it better but it will give you a start. Place it in your /usr/local/etc/rc.d directory and make it executable. #!/bin/sh echo -n 'vsftpd' case "$1" in start) echo "Starting vsftpd ..." /usr/local/sbin/vsftpd & ;; stop) echo "Stopping vsftpd ..." killall vsftpd ;; *) echo "Usage: 'basename $0' {start|stop}" >&2 exit 64 ;; esac exit 0 Hope that helps. Lowell Gilbert wrote: Pat Maddox [1] writes: Is it better to run vsftpd standalone or using inetd? A friend of mine told me that it's more secure to do it standalone, and apparently that's the recommended method now. Somewhat, yes. A lot of people don't trust inetd at all, and most of its advantages can be overcome by just buying a little more memory. If that's the case, how do I go about getting vsftpd to run when the machine boots up? It doesn't look like there's a vsftpd_enable that I can use, like I can with other services. No, looks like you'll have to write your own startup script. No big deal -- just look at "man rc". References 1. mailto:pergesu@gmail.com --=======AVGMAIL-422B0F82206A======= Content-Type: text/plain; x-avg=cert; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Content-Description: "AVG certification" No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 266.5.5 - Release Date: 3/1/2005 --=======AVGMAIL-422B0F82206A=======--