Package: vsftpd
Version: 2.3.2-3+squeeze2

The postinst script for vsftpd tries to check whether the user and group name
that is to own the FTP directory (debconf handle vsftpd/username, default "ftp")
already exist. It does so by running
        getent passwd | grep -q "^${_USERNAME}"
        getent group | grep -q "^${_USERNAME}"

One system I installed vsftpd on didn't have a group named ftp but it had one
named ftplog, yielding a false positive on the second test above. The install
then failed with a "No such group" error at
        chown root:${_USERNAME} ${_DIRECTORY} -R

I suggest changing those tests to
        getent passwd | grep -q "^${_USERNAME}:"
        getent group | grep -q "^${_USERNAME}:"

Moreover: wouldn't it be better, when the username already exists, to use its
gid from the passwd entry as the group name instead of constraining the group
name to be identical with the username?



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to