FTP chroot not working in ISPConfig

Discussion in 'Installation/Configuration' started by gzx21, May 19, 2013.

  1. gzx21

    gzx21 New Member

    Hello, I have a fresh installation of ISPConfig on Debian Wheezy 64bit. I closely followed this installation guide:


    I've been trying to get all the parts working and I've encountered weird problem with FTP access for clients.
    I created a new site as admin for the first user. (mydomain.com)
    Then I logged in as a user and created a FTP account for that site. (dummyuser)

    However when I log in, the user is chrooted in a weird way.
    Contents of the home as the FTP user sees it:
    Real contents:

    I guess this is not expected behavior, I expected only access to empty folder which would be vhost htdocs roots.

    I also checked settings and FTP users are set to be chrooted in /var/www/clients/[client]/[web]

    Is there anything I am missing?

    Thanks in advance!
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Thats correct, it is called a jail. Dont mix up the folder names that you see there ith the system folders which have the same name.
  3. gzx21

    gzx21 New Member

    Hello, I am sorry to reply so late, but the problem occured again and I am not sure how it happened.

    As to your reply - could you please elaborate a bit? I use FTP only to connect to web directory (i.e. /var/www/clients/clientX/webY/) and thus it is not desirable to have all the other directories like bin and lib there.

    What confuses me is that no other ftp account has these.

    Is is safe to delete them?

    Thank you very much.

  4. till

    till Super Moderator Staff Member ISPConfig Developer

    it is absoluetley ok to have copies of thesa directories there as thats a jail. If you dont know what a jail is, please try to look it up with google or wikipedia.

    If the website has a jailed ssh user or a cronjob, thenthese files must be there.

    If you delet them, the ssh user and cronjobs of the site will fail. You wont be able to get them working again without deleting and recreating the site. So as long as you want to use this site, dont delete these required folders.
  5. gzx21

    gzx21 New Member

    I know what jail is, I was just confused that the directories appeared there (for "no reason") and didn't realize that the particular web had cron job set. Thank you very much for your time and detailed explanation!

    All the best,

Share This Page