Users With nologin Shell Unable to Login to FTP
Applies to:
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64
Symptoms
Users with default shell /sbin/nologin configured in /etc/passwd, are not able to login via FTP in Oracle Linux 7.
Cause
The vsftpd service, by default verifies that the user's shell is valid. If the user’s default shell is not present in /etc/shells, the login fails.
For security reasons, /sbin/nologin is not present in /etc/shells, causing FTP login to fail.
Solution
Adding /sbin/nologin to /etc/shells solves the problem, but is considered a security flaw and NOT recommended.
A better option is to comment out the following line in /etc/pam.d/vsftpd :
Tagged:
0