You could potentially work around the regex misinterpretation issue by using some more complex combinations of grep and awk and so forth, but there's a better reason to not use getent | grep.
If /etc/nsswitch.conf is configured with a user or group database that doesn't support enumerating users (Hesiod, for instance, and probably LDAP under bad configurations), then the test will return false *negatives* and then try to create a user that already exists. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to vsftpd in ubuntu. https://bugs.launchpad.net/bugs/629234 Title: package vsftpd 2.2.2-3ubuntu6 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1 -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs