VSFTPD confusion
Mike Klinke
lsomike at futzin.com
Mon Oct 18 13:52:21 UTC 2004
All,
The /etc/init.d/startup file seems to equate the command to start up
as "/usr/sbin/vsftpd vsftpd &" according to the way the pathname is
parsed in the script below. However, the filename in /etc/vsftpd
is named "vsftpd.conf" not "vsftpd" and it therefore doesn't start
properly when passed as an argument in the script in my system.
Code snippet from from /etc/init.d/vsftpd
if [ -d /etc/vsftpd ] ; then
for i in `ls /etc/vsftpd/*.conf`; do
site=`basename $i .conf`
echo -n $"Starting $prog for $site: "
/usr/sbin/vsftpd $i &
RETVAL=$?
[ $RETVAL -eq 0 ] && {
touch /var/lock/subsys/$prog
success $"$prog $site"
}
echo
done
Using this I can't seem to start vsftpd with the default
configuration by using the command "/etc/init.d/vsftpd start". A
"ps aux" shows that it didn't start and when I tried this at the
command line I, understandably, get an error as follows:
08:41:10 # for i in `ls /etc/vsftpd/*.conf`; \
do site=`basename $i .conf`; \
`/usr/sbin/vsftpd $site`; done
500 OOPS: vsftpd: cannot open config file:vsftpd
I filed this as a bug:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=136047
but got a response "WORKSFORME" and it was subsequently closed. I'm
obviously missing something, so ... how can this possibly work?
Regards, Mike Klinke
More information about the fedora-test-list
mailing list