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
Note!! Please register for a free account to access the full content and also to participate in Q&A in the community

OCI: FTP Connection Fails with "Login failed" When the User's Shell is Set to "nologin"

edited Feb 2, 2024 11:58AM in Linux

Applies to:

Oracle Cloud Infrastructure

Linux x86-64

Symptoms:

When trying to connect to an account via FTP, the connection fails with the “Login failed” error:

Trying 127.0.0.1...
Connected to localhost (127.0.0.1).
220 (vsFTPd 3.0.3)
Name (localhost:opc): ftp_user
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
ftp>

Cause:

The Pluggable Authentication Module (PAM) is responsible for daemon's authentication and the VSFTPD service will refer to its PAM module: the “/etc/pam.d/vsftpd” file.

By default the “/etc/pam.d/vsftpd” file includes the “auth required pam_shells.so” directive which enforces that only users with a valid shell will be allowed to log in:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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