In postinst the following line is wrong
if ! getent passwd | grep -q "^${_USERNAME}"
and should be at least
if ! getent passwd | grep -qw "^${_USERNAME}"
or simply:
if ! getent passwd "${_USERNAME}"
Same thing for checking the existence of the group. BTW the problem still exists in 10.10.
John, this is the same error because the fix for this bug doesn't correctly check if the default user/group 'ftp' exits.
To reproduce :
$ sudo adduser --system --group ftpd
$ sudo apt-get install vsftpd
In postinst the following line is wrong
if ! getent passwd | grep -q "^${_USERNAME}"
and should be at least
if ! getent passwd | grep -qw "^${_USERNAME}"
or simply:
if ! getent passwd "${_USERNAME}"
Same thing for checking the existence of the group. BTW the problem still exists in 10.10.