Andrew Fashion Asked: 2011-01-19 13:13:59 +0800 CST2011-01-19 13:13:59 +0800 CST 2011-01-19 13:13:59 +0800 CST Setting up vsftpd with users locked to specific directory 772 I setup vsftpd, and changed the chroot settings in the vsftpd.conf file. But how do I make a user able to access only /var/www/html/username_here/ I made the user with useradd, but what's next? Thanks :) ftp vsftpd centos5 2 Answers Voted HTTP500 2011-01-19T13:29:43+08:002011-01-19T13:29:43+08:00 Look at the chroot_local_user and local_root options: http://vsftpd.beasts.org/vsftpd_conf.html You can also get really restrictive by specifying cmds_allowed Hope this helps. Cheers user9517 2011-01-19T13:30:27+08:002011-01-19T13:30:27+08:00 Edit your /etc/vsftpd/vsftpd.conf file and add a line that says chroot_local_users=YES then restart your vsftpd /sbin/service vsftpd restart This will restrict local users to their home directories.
Look at the chroot_local_user and local_root options: http://vsftpd.beasts.org/vsftpd_conf.html
You can also get really restrictive by specifying cmds_allowed
Hope this helps.
Cheers
Edit your
/etc/vsftpd/vsftpd.conf
file and add a line that saysthen restart your vsftpd
This will restrict local users to their home directories.