I cannot fully connect to my ftp server. I get the login prompt in the browser, login as anonymous, then I get the error. Logging in from a terminal looks like this:
russ@behne:~> ftp behne.ddns.net
Connected to behne.ddns.net (112.208.203.161).
220-Welcome to openSUSE Leap 42.2 - Kernel %r (%t).
220
331 Please specify the password.
500 OOPS: vsftpd: refusing to run with writable root inside chroot()
Login failed.
421 Service not available, remote server has closed connection
ftp>
Error message:
vsftpd: refusing to run with writable root inside chroot()
Fix I’ve tried:
I tried the allow_writeable_chroot=YES solution which did not work. (Yes, I restarted the server with systemctl restart vsftpd) There was no effect, as though either the setting allow_writeable_chroot=YES in the config file is being ignored, or the config file in its entirety isn’t being read on restart.
I do not want to try the other suggested fix of removing all writable bits from the user’s home directories, as I understand that there are undesirable side effects from doing that. I’d much rather fix this one.
Does anyone know what to do, what to test, and how to fix this?