Vsftpd is the server which gets installed by many web host. They will have accessibility to process in vsftpd server but what about normal users?
If a user tries to access vsftpd server, they will end up with the error:
If the parameter is set with Yes option in userlist_deny and userlist_enable in the path /etc/vsftpd/vsftpd.conf then you will get error immediately. But have one thing in mind that error “503 Permission denied” doesn’t ask you to enter the password.
It’s a technical error so that entering new or old password is the not the solution for 503 error. Kindly, check userlist_enable parameter Yes is present or not. If it is present, then it automatically loads the username to the file “/etc/vsftpd/userlist_file”.
If user tries login via entering username or other method, it shows denied error immediately. You don’t have permission to enter password in next step.
So, enter No to the parameter value userlist_deny.
Let us start the step one by one:
Step 1: Start editing the file “/etc/vsftpd/vsftpd.conf” and set the parameter value “Yes” to userlist_enable and set “No” to userlist_deny.
Step 2: Add username to the file “/etc/vsftpd/user_list”
Step 3: You yourself can create a list of people who are not allowed to access ftp in the file “/etc/vsftpd/ftpusers”
Step 4: Restart vsftpd by entering the command:
Step 5: Let us try with the same username to access ftp:
Step 6: If you try with some other username, then you will definitely get error as
If a user tries to access vsftpd server, they will end up with the error:
Code:
# servicevsftpd status
vsftpd (pid 5806) is running...
# ftp localhost
Connected to localhost.localdomain.
220 (vsFTPd 2.0.5)
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (localhost:oracle): user
530 Permission denied.
Login failed.
It’s a technical error so that entering new or old password is the not the solution for 503 error. Kindly, check userlist_enable parameter Yes is present or not. If it is present, then it automatically loads the username to the file “/etc/vsftpd/userlist_file”.
If user tries login via entering username or other method, it shows denied error immediately. You don’t have permission to enter password in next step.
So, enter No to the parameter value userlist_deny.
Let us start the step one by one:
Step 1: Start editing the file “/etc/vsftpd/vsftpd.conf” and set the parameter value “Yes” to userlist_enable and set “No” to userlist_deny.
Code:
# vi /etc/vsftpd/vsftpd.conf
userlist_enable=YES
userlist_deny=NO
Code:
# cat /etc/vsftpd/user_list
username1
Code:
# catftpusers
# Users that are not allowed to login via ftp
root
bin
daemon
adm
lp
sync
shutdown
halt
news
mail
uucp
games
operator
Code:
# servicevsftpd restart
Code:
$ ftp localhost
Connected to localhost.localdomain.
220 (vsFTPd 2.0.5)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (localhost:root): username1
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
Code:
# ftp localhost
Connected to localhost.localdomain.
220 (vsFTPd 2.0.5)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (localhost:root): root
530 Permission denied.
Login failed.
ftp>