You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Users With nologin Shell Unable to Login to FTP

Announcement
281
Views
0
Comments
edited Jan 7, 2023 11:32AM in Linux

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 : 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!