Comment 3 for bug 1574911

Revision history for this message
OwN (own3mall) wrote : Re: vsftpd 500 oops stack smashing detected - Ubuntu 16.04

This bug needs to be re-examined and re-opened now that libpam-mysql has been fixed:

libpam-mysql fixes:

https://bugs.launchpad.net/ubuntu/+source/pam-mysql/+bug/1574900

Even with the latest libpam-mysql fix, VSFTPD still crashes:

USER test
331 Please specify the password.
PASS xxxx
*** stack smashing detected ***: /usr/sbin/vsftpd terminated
500 OOPS: priv_sock_get_result
Disconnecting from site localhost

Contents of /etc/pam.d/vsftpd:

auth required pam_mysql.so user={DBUSERHERE} passwd={DBPASSHERE} host=localhost db={DBNAMEHERE} table=ftpaccounts usercolumn=ftpusername passwdcolumn=password crypt=2
account required pam_mysql.so user={DBUSERHERE} passwd={DBPASSHERE} host=localhost db={DBNAMEHERE} table=ftpaccounts usercolumn=ftpusername passwdcolumn=password crypt=2