I'm using Ubuntu Server 9.10 with ProFTP and Webmin.
I have things set up such that when the FTP user logs in, the user goes to /var/www/[domain]. The trouble is that I don't want them to see the /var/www part, just the [domain] part. Is there a way to do that?
Best Answer
You can use the setting
DefaultRoot
to chroot a group to the/var/www/[domain]
directory.For example, this will chroot the group
group1
toexample.net
:DefaultRoot /var/www/example.net group1
Add to proftpd.conf and restart ftpd. The parameter after the path accepts boolean input.