Need to install an FTP server. OpenWRT docs describe installation of vsftpd, proftpd and pure-ftpd. Only proftpd and pure-ftpd seem to not exist in OpenWRT v19.07.2? No maintainer?
So I installed vsftpd, being the only existing one. After mastering several idiosyncrasies, I'm stuck with
500 OOPS: vsftpd: refusing to run with writable root inside chroot()
The medium to be accessed is mounted on /storage, and this is to be the directory where ftp users can work. The ftp server runs on a travel router, is not accessible from WAN, and only me and my wife access it. So there are no security issues. So I decided to allow anonymous access only.
However the login fails with the message cited above. Plenty of advice from the Internet tells to use the
option which is available since version 3 of the daemon. The OpenWRT package has v3.0.3, but the option apparently has no effect whatsoever. Did the maintainer take out parts of the code? Or, what else could cause this problem?
Here is the vsftpd.conf
background=YES listen=YES anonymous_enable=YES no_anon_password=YES local_enable=NO write_enable=YES local_umask=022 check_shell=NO session_support=NO syslog_enable=YES userlist_enable=NO userlist_deny=YES anon_root=/storage anon_mkdir_write_enable=YES anon_other_write_enable=YES anon_upload_enable=YES chroot_local_user=YES allow_writeable_chroot=YES connect_from_port_20=YES ftp_data_port=20 delete_failed_uploads=YES dirlist_enable=YES download_enable=YES connect_timeout=5 data_connection_timeout=15 pasv_enable=YES pasv_min_port=10090 pasv_max_port=10100