Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just 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.

  2. #2
    Just Joined! manicanet's Avatar
    Join Date
    Nov 2009
    Posts
    11
    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

    Code:
    mkdir /home/user/www
    mount --bind /var/www /home/user/www
    and set the chroot to /home/user and you will be able to see both folders.

    OR
    Code:
    mkdir /home/user/data/www
    mount --bind /var/www /home/user/data/www
    and set the chroot to /home/user/data and you will be able to see both folders.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •