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. |
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 |
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? |
Please post the output of the below command.
Code:
ls -l /etc/vsftpd.chroot_list please use code tags for command output; makes it easier to read [code]output here[/code[ |
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, |
Pleasure
Please mark your thread as solved using the thread tools just above the first post on this page. |
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? |
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 |
All times are GMT -5. The time now is 02:30 AM. |