LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   500 OOPS: could not read chroot() list file:/etc/vsftpd.chroot_list (https://www.linuxquestions.org/questions/linux-newbie-8/500-oops-could-not-read-chroot-list-file-etc-vsftpd-chroot_list-4175426540/)

rebelscum1 09-10-2012 10:41 AM

500 OOPS: could not read chroot() list file:/etc/vsftpd.chroot_list
 
Hi, I've installed vsftp on Ubuntu 11 Narwhal, getting the following error below when I try to log in to FTP, just wondered can anyone advise..?

After editing /etc/vsftpd.conf & changing the following to 'YES'
chroot_local_user=YES
chroot_list_enable=YES
# (default follows)
chroot_list_file=/etc/vsftpd.chroot_list
[& restart service]

I get the following error on all accounts when trying to log into Filezilla.
500 OOPS: could not read chroot() list file:/etc/vsftpd.chroot_list

However if I amend the above details to;
chroot_local_user=YES
chroot_list_enable=NO
& restart the service, I can log in to Filezilla no probs but all users are jailed which is not ideal.

Have tried playing with the chroot_list file, just including myself or no one at all but the only thing that allows me to connect is set chroot_list_enable=NO

Pretty sure the file /etc/vsftpd.chroot_list is there, I have opened it in nano & saved changes.
Guessing its a permissions thing but was a bit wary of affecting the overall security.

bathory 09-10-2012 12:25 PM

Hi,

It should work, if /etc/vsftpd.chroot_list exists.
Anyway, you can define the user's to chooted by adding them into that file, while the rest of users will not be jailed into their homedirs. For this use:
Code:

chroot_local_user=NO
chroot_list_enable=YES
# (default follows)
chroot_list_file=/etc/vsftpd.chroot_list


rebelscum1 09-10-2012 04:49 PM

Thanks for your reply although still not working unfortunately, every time that chroot_list_enable=YES, & yes I uncommented the chroot_list_file path.

Could it be related to perms for the chroot_list_file?

Wim Sturkenboom 09-10-2012 11:58 PM

Please post the output of the below command.
Code:

ls -l /etc/vsftpd.chroot_list
Note:
please use code tags for command output; makes it easier to read
[code]output here[/code[

rebelscum1 09-11-2012 05:12 AM

When I type the command I get ls: cannot access /etc/vsftpd.chroot_list: No such file or directory
& now I see what the problem is, thanks for prompting me in the right direction!

A bit embarrassing but I have to be honest - a typo, my file was called vsftp.chroot_list not vsftpd.chroot_list

Thanks for your advice, all working perfectly now,

Wim Sturkenboom 09-11-2012 05:43 AM

Pleasure

Please mark your thread as solved using the thread tools just above the first post on this page.

edera 11-26-2013 09:07 AM

Hi guys,

I have the same problem, I've tried to follow you but it still do not work. Please, witch was the final solution?

coder618 03-22-2019 07:11 AM

Need to do some manual stuff
 
1. First of all, if this file (/etc/vsftpd.chroot_list) doesnt exist you have to create it.
2. Then you have to write allowed username in your created file(/etc/vsftpd.chroot_list). one username per line.
3. You have to restart the vsftpd service to see the result
Code:

sudo service vsftpd restart
I hope if you follow that, it will solve the issue.


All times are GMT -5. The time now is 02:30 AM.