Issues with vsftpd Service

This document (7023666) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 12

Situation

System was working fine with SLES 11 before migration to SLES 12. After migration the following issues can be observed: 

- Local users can no longer authenticate to FTP service after the system has been joined to AD
- Listing directory "ls" that contains more than one million "too many files" files failing with errors 

An example of the error messages are: 

vsftpd[30863]: pam_winbind(vsftpd:auth): request wbcLogonUser failed: WBC_ERR_AUTH_ERROR, PAM error: PAM_USER_UNKNOWN (10), NTSTATUS: NT_STATUS_NO_SUCH_USER, Error message was: No such user

vsftpd[21254]: out of memory [21252] 

Resolution

To solve above issue use this parameter ( address_space_limit ) in /etc/vsftpd.conf ; E.g. address_space_limit=157286401
The maximum value for this parameter is : 4294967295

Cause

The vsftpd process is getting out-of-memory resulting in failed pam module. 

Additional Information

address_space_limit
Set the amount of memory vsftpd can use (in bytes). This limit exists so that attackers cannot exploit any potential bugs in the server that might result in vsftpd allocating huge amounts of memory that would affect the host system negatively, e.g. causing thrashing or killing random processes due to Linux's OOM system. If the value is configured too low, vsftpd will fail with "out of memory" errors during normal operations. Oftentimes, this occurs inside of the PAM stack on systems that have many memory-intensive PAM modules enabled.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7023666
  • Creation Date: 24-Jan-2019
  • Modified Date:03-Mar-2020
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback@suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center