LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   vsftpd (https://www.linuxquestions.org/questions/linux-security-4/vsftpd-515245/)

just_me_then 12-31-2006 07:01 PM

vsftpd
 
Hello.

vsftp is giving me some trouble at the moment. i want every user to be ch_root'ed and have the following in my conf:

# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
chroot_list_enable=YES
# (default follows)
chroot_list_file=/etc/vsftpd.chroot_list

This works well so long as the user is in the list. If i change chroot_list_enable = NO then it stops working, and they can view any file.

What i need is for ever user to automaticaly be chroot'ed without me having to add there name to the list. How can i go about this?



Also whenever an ftp user logs in and sends a comand they get the following for long time before anything starts happening. Any thoughts on that?

ftp> ls
229 Entering Extended Passive Mode (|||25857|)


Thanks!

acid_kewpie 01-01-2007 02:59 AM

as your pasted comment even says there... you should just need to set chrootlocal_user=YES and that's all there is to it.

just_me_then 01-01-2007 04:12 AM

Yer, i get that, but it only works if the users name is in the list, and thats the bit i wish to avoid!

acid_kewpie 01-01-2007 05:07 AM

if the chroot_local_user is set to YES then the list is of users NOT to chroot. therefore if the list is empty everyone will be chrooted by default.

just_me_then 01-01-2007 05:22 AM

sure, but when i try that it still doesent work! Instead it makes everybody not chrooted! Some-what strange...

timmeke 01-02-2007 07:05 AM

Could you please post more details of your attempts, results obtained, etc (ie post the exact commands & their output)?
Also make sure to have vsftpd re-read the config to make sure that your changes have had effect.


All times are GMT -5. The time now is 01:11 AM.