Code:
#WimS; additional config
#jail user to their homedirectory
chroot_local_user=YES
#only allow me
userlist_enable=YES
userlist_deny=NO
userlist_file=/etc/vsftpd.user_list
The first directive (above) in the file vsftpd.conf enables the 'jail'. Unfortunately I don't know how to 'tranfer' it to the web directories (/var/www/sub) for the users. My approach is therefor slightly different: each user has his normal home directory and I tell Apache to look there for the files.
Code:
/home
|
+-- user1
| |
| +-- web (document root)
| |
| +-- inc
+-- user2
| |
| +-- web (document root)
| |
| +-- inc
I use the following for my virtual host (as an example); apache 1.3!
Code:
<VirtualHost 172.31.212.193:443>
# General setup for the virtual host
DocumentRoot "/home/commandcentre/web"
ServerName btd-commandcentre
ServerAdmin your.email@here