vsftpd bug "or" feature ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux