It seems to complain about pam_shells. And indeed, after commenting this out, the problem goes away, even with both anonymous_enable and local_enable set to YES.
The problem becomes different when starting vsftpd from the command line instead of using "service vsftpd start": # ftp localhost Connected to localhost.localdomain. 220 (vsFTPd 2.2.2) Name (localhost:root): aknaff 331 Please specify the password. Password: ltdb: tdb(/var/lib/samba/group_mapping.ldb): tdb_mmap failed for size 77824 (Cannot allocate memory) Login failed. Another weird thing is that the process spawned by vsftpd.log per user has the following in /proc/<pid>/limits Max address space 104857600 104857600 bytes The master process doesn't, it has: Max address space unlimited unlimited bytes -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/723603 Title: vsftpd no longer supports both anonymous_enable and local_enable -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs