How to Fix: Receiving 530 login incorrect error for all user accounts other than my own: vsftpd Ubuntu 12.04
Troubleshooting vsftpd server issue with 530 login incorrect error on Ubuntu 12.04.
📋 Table of Contents
The error '530 Login incorrect' is preventing users from accessing FTP on your Ubuntu 12.04 vsftpd server, except for the system administrator's account. This issue affects all user accounts that have been created using `useradd` and are trying to log in via FTP.
This problem can be frustrating because it appears as though the FTP access is restricted to the system administrator's account alone, despite having correctly configured the vsftpd server with multiple user accounts.
💡 Why You Are Getting This Error
- The primary reason for this error is that the `pam_service_name` option in the `/etc/vsftpd.conf` file is set to 'vsftpd', which is a service name specific to the vsftpd daemon. When a non-root user attempts to log in via FTP, the pam module tries to authenticate using the 'vsftpd' service, but since it's not available for non-root users, the authentication fails.
- Another possible cause could be related to the way pam modules are configured on your system. Sometimes, the `pam_service_name` option might need to be changed to 'ftp' instead of 'vsftpd', or other configuration options might need to be tweaked.
🛠️ Step-by-Step Verified Fixes
Modifying the PAM Service Name
- Step 1: Open the `/etc/pam.d/vsftpd` file in a text editor and locate the line that starts with `auth required pam_user.so`.
- Step 2: Change this line to include the `ftp` service name instead of 'vsftpd', so it looks like this: `auth required pam_user.so nullok_secure user=ftp`.
- Step 3: Save the changes and restart the vsftpd service by running the command `sudo service vsftpd restart`. This should allow non-root users to log in via FTP.
Modifying the PAM Configuration File Manually
- Step 1: Open the `/etc/pam.d/vsftpd` file in a text editor and locate the line that starts with `auth required pam_user.so`.
- Step 2: Change this line to include the `ftp` service name instead of 'vsftpd', so it looks like this: `auth required pam_user.so nullok_secure user=ftp`.
- Step 3: Save the changes and restart the vsftpd service by running the command `sudo service vsftpd restart`. This should allow non-root users to log in via FTP.
✨ Wrapping Up
After following these steps, you should now be able to access FTP on your Ubuntu 12.04 vsftpd server using any user account that has been created with `useradd`, except for the system administrator's account.
❓ Frequently Asked Questions
🛠️ Related Fixes
How to Fix: Pc crashes shortly after launching game (rainbow
Fix Pc crashes shortly after launching game (rainbow six siege). Compl
How to Fix: Installing an APK on a locked down phone
Installing an APK on a locked down phone: Try using a rooted device, e
How to Fix: New PC build- no signal and no clue
Fix New PC build- no signal and no clue. Complete troubleshooting guid