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"
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:
Tagged:
0