[CentOS] vsftpd bug "or" feature ?

Tue Jan 17 17:35:25 UTC 2006
Steve Huff <shuff at vecna.org>

On Jan 17, 2006, at 12:12 PM, Robert Hanson wrote:

> known issue?
>
> can anyone duplicate?
>
> is it a bug?????? or a feature???

this is a feature.

here's the start() function for /etc/init.d/vsftpd:

start() {
         # Start daemons.

         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
         else
                 RETVAL=1
         fi
         return $RETVAL
}

look at the loop that starts on the fifth line of the function; this  
loops through every .conf file in the vsftpd config directory (thus  
enabling you to run multiple ftp sites with different configurations  
off of a single machine).

if you want your backup file to be exempt, call it "vsftp.conf.bak"  
instead.  i'm surprised this issue hasn't bitten you earlier.

-steve

---
If this were played upon a stage now, I could condemn it as an  
improbable fiction. - Fabian, Twelfth Night, III,v