Why my vsftp service can't start?

Here is my /etc/vsftpd.conf .

listen=on
anonymous_enable=YES
local_enable=YES
write_enable=YES
chroot_local_user=YES
local_root=/home/ftp
anon_root=/home/ftp
xferlog_enable=YES
xferlog_file=/var/log/vsftpd.log

In the console,

service vsftpd start
root@pengsir:/home/debian8# service vsftpd status
● vsftpd.service - vsftpd FTP server Loaded: loaded (/lib/systemd/system/vsftpd.service; enabled) Active: failed (Result: exit-code) since Sat 2015-10-17 15:37:34 HKT; 4s ago Process: 3060 ExecStart=/usr/sbin/vsftpd /etc/vsftpd.conf (code=exited, status=2) Process: 3057 ExecStartPre=/bin/mkdir -p /var/run/vsftpd/empty (code=exited, status=0/SUCCESS) Main PID: 3060 (code=exited, status=2)
Oct 17 15:37:34 pengsir systemd[1]: vsftpd.service: main process exited, co...NT
Oct 17 15:37:34 pengsir systemd[1]: Unit vsftpd.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.

Why the vsftp service can't start?

5

2 Answers

When I used sudo /usr/sbin/vsftpd, it gave

500 OOPS: unrecognised variable in config file: allow_ftpd_full_access. 

Once I commented that line, vsftpd started.

1

first remove the vsftpd packages using these commands.

1 : sudo apt-get remove vsftpd 2 : sudo apt-get remove --auto-remove vsftpd 3 : sudo apt-get purge vsftpd 4 : sudo apt-get purge --auto-remove vsftpd

After This Process Succesfully done.now you can install it again using this command

sudo apt update sudo apt-get install vsftpd service vsftpd status

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like