Fix vsftpd to write data at chroot folder

If you try to install this ftp server, maybe you will get this follows problem at restart it:

service vsftpd status 
● vsftpd.service - vsftpd FTP server
   Loaded: loaded (/lib/systemd/system/vsftpd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2016-07-17 18:42:28 EDT; 2s ago
  Process: 2246 ExecStart=/usr/sbin/vsftpd /etc/vsftpd.conf (code=exited, status=2)
  Process: 2243 ExecStartPre=/bin/mkdir -p /var/run/vsftpd/empty (code=exited, status=0/SUCCESS)
 Main PID: 2246 (code=exited, status=2)

systemd[1]: Starting vsftpd FTP server...
systemd[1]: Started vsftpd FTP server.
systemd[1]: vsftpd.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
systemd[1]: vsftpd.service: Unit entered failed state.
systemd[1]: vsftpd.service: Failed with result 'exit-code'.

to solve this, edit your /etc/vsftpd.conf file and comment the listen ipv6 line

#listen_ipv6=YES

Later, restart the service with: service vfftpd restart
If you can't connect to your server and the client get's this error:

500 OOPS: vsftpd: refusing to run with writable root inside chroot()
Error: Critical error: Could not connect to server

enable wirte in this folder with this follow line:

allow_writeable_chroot=YES

Comments

Popular posts from this blog

Exception: Could not find a default OpenFlow controller in Mininet

How to fix Android when developer options are not available for this user

Webcam streaming throught VLC with YUY2 compatibility