chroot virtual users in vsftpd
HI
problem: i cannot chroot virtual users in vsftpd i have checked many links but steel not working her's the config Code:
guest_enable=YES i tryed diffrent tye of config like this but not working right Code:
guest_enable=YES etc/vsftpd/virtualftp : Code:
write_enable=YES |
check the syntax used in vsftpd.conf
Code:
chroot_list_enable=YES Code:
user_config_dir=/etc/vsftpd_user_conf Code:
#vi /etc/vsftpd/chroot_list Code:
#vi /etc/vsftpd_user_conf/virtualftp now make virtualftp user log in and check |
thanks for replying.
still not working . its just chroot to virtualftp's home directory(/home/virtualftp) and not to user's home directory(/var/www/ftp/USER-NAME) and it's able to change directory to every where. here's the config Code:
uest_enable=YES Code:
root@debian:/etc/vsftpd# cat virtualftp |
Suppose you want to chroot user1 in his home directory
Code:
#vi vsftpd.conf Code:
#mkdir /etc/vsftpd_user_conf |
thanks for reply . its steel not working . i put all the configs. lili is a virtual user and virtualftp is a local user.
its not chrooted and it appear in / directory . it cant goto any directory except var/www/ftp/lili . /etc/vsftpd.conf Code:
guest_enable=YES Code:
virtualftp Code:
write_enable=YES |
I don't think you read my post correctly :o
Code:
user_config_dir=/etc/vsftpd_user_conf |
i changed vsftpd directory to vsftpd_chroot_con
but nothing changed . all configs are same as before just user_config_dir=/etc/vsftpd changed to user_config_dir=/etc/vsftpd_user_conf and lili moved to user_config_dir=/etc/vsftpd_user_conf from /etc/vsftpd |
that's weird according to the config file
virtualftp user should log in to the localroot directory i.e. /var/www/ftp/ Code:
local_root=/var/www/ftp/ |
thank you a lot . it's finally working.
marked as solved. fore next person reach this thread. here is my configuration. virtualftp is a local user and lili and sisi are virtual user. fore adding new user to /etc/vsftpd/passwd you should use " htpasswd " command. Code:
|
All times are GMT -5. The time now is 02:29 AM. |