Results 1 to 2 of 2
I have an ubuntu lamp server with proftpd installed. I am able to change the default root to different directories like my data or www directory . But is there ...
- 11-19-2009 #1Just Joined!
- Join Date
- Oct 2009
- Location
- Ames Iowa
- Posts
- 27
Access multiple directories with ftp
I have an ubuntu lamp server with proftpd installed. I am able to change the default root to different directories like my data or www directory . But is there any way I can configure proftpd to give me access to multiple different directories. I have already tried a symbolic link to the other directory with no luck.
- 11-30-2009 #2
I assume you are chrooting the user and that is why the symbolic link is not working.
Symbolics links that point outside the chrooted environment don't work because a symbolic link simply points to the location of the file.
The easiest way to fix this would require you to mount the 2nd directory inside a sub-directory of the first one. For example:
The 2 directories you want to access:
/home/user/data
/var/www
and set the chroot to /home/user and you will be able to see both folders.Code:mkdir /home/user/www mount --bind /var/www /home/user/www
OR
and set the chroot to /home/user/data and you will be able to see both folders.Code:mkdir /home/user/data/www mount --bind /var/www /home/user/data/www


Reply With Quote
