[Bug 648202] Re: vsftpd started even if not in standalone mode
Andres Rodriguez
andreserl at ubuntu-pe.org
Fri Feb 25 20:47:50 UTC 2011
** Changed in: vsftpd (Ubuntu Lucid)
Status: Confirmed => In Progress
** Changed in: vsftpd (Ubuntu Maverick)
Status: Confirmed => In Progress
** Changed in: vsftpd (Ubuntu Lucid)
Status: In Progress => Confirmed
** Changed in: vsftpd (Ubuntu Maverick)
Status: In Progress => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is a direct subscriber.
https://bugs.launchpad.net/bugs/648202
Title:
vsftpd started even if not in standalone mode
Status in “vsftpd” package in Ubuntu:
Confirmed
Status in “vsftpd” source package in Lucid:
Confirmed
Status in “vsftpd” source package in Maverick:
Confirmed
Bug description:
Binary package hint: vsftpd
(lucid vsftpd 2.2.2-3ubuntu6)
because of a syntax error in /etc/init/vsftpd.con, vsftd is started
(and respawns a lot as it fails to start) if there's no "listen=yes"
in /etc/vsftpd.conf
/etc/init/vsftpd.conf has:
if [ -e "${CONFFILE}" ] && !egrep -iq "^
*listen(_ipv6)? *= *yes" "${CONFFILE}"
without space between ! and egrep. As a result !egrep returns with an
error ("!egrep" command not found) and as a result, the script assumes
the "listen = yes" line is in the file.
Moreover, if the /etc/vsftpd.conf file is not there, vsftpd is also
started which I suspect was not intended.
Moreover egrep is not a POSIX command.
Would be better written as:
if ! grep -qEis --
'^[[:blank:]]*listen(_ipv6)?[[:blank:]]*=[[:blank:]]*yes' "$CONFFILE";
then...
More information about the Ubuntu-sponsors
mailing list