S
S
susnake2014-10-08 13:50:50
FTP
susnake, 2014-10-08 13:50:50

Why does 500 OOPS appear: vsftpd: refusing to run with writable root inside chroot()?

Good afternoon.
Could you please explain what is the essence of this error?
I set up vsftpd on ubuntu server 14.04 according to this guide from help.ubuntu.ru
My vsftpd.conf
As stated in help.ubuntu.ru I wanted to make, for more security, that the user could not leave his home directory and I uncommented chroot_local_user= YES , but as soon as I uncommented it and tried to access FTP through FileZilla, I got an error

500 OOPS: vsftpd: refusing to run with writable root inside chroot()
Ошибка:	Critical error: Невозможно подключиться к серверу

in the same guide it is written,
If you see an error when trying to connect:
Ответ:	500 OOPS: vsftpd: refusing to run with writable root inside chroot()
Ошибка:	Critical error: Невозможно подключиться к серверу

then you need to change the permissions on the local user's home directory
sudo chmod a-w /home/user/

Those. initially the following rights to the home folder:
drwxrwxr-x  3 backupserver backupserver  4096 окт.   8 16:25 backupserver

And when I ran this command, it became:
dr-xr-xr-x  3 backupserver backupserver  4096 окт.   8 16:25 backupserver

That is, as far as I understand, the solution to this error is to remove the Write attribute from the home folder. Yes, at the same time I can log in to FTP, but when transferring files, an error appears:
Ответ:	553 Could not create file.
Ошибка:	Критическая ошибка при передаче файлов

If I comment chroot_local_user=YES in vsftpd.conf, then I log in normally and can transfer files, but it turns out that the user is not limited only to his home directory, did I understand correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
susnake, 2014-10-16
@susnake

Understood .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question