Setting Up Git in Conjunction with an ISPConfig chroot (JailKit)

Discussion in 'Installation/Configuration' started by fatbear, Jul 18, 2013.

  1. fatbear

    fatbear ISPConfig Developer ISPConfig Developer

    What I'm trying to do is to have a GIT repository on the server that:

    1. Users can use GIT over SSH remotely.
    2. Users can ssh onto the server and run GIT commands locally.

    Users are to be created all under one client id (e.g., client5).
    Users are to be chrooted so that they can't see other client files on the server (e.g., they cannot see client7's files).
    Users have access to shared GIT repositories (e.g., all GIT repositories created for client5).

    The problem I'm having is that I need to instantiate a GIT repository in just one directory. So, how do all chrooted users see that directory?

    Can anyone explain how to use ISPConfig in conjection with setting up GIT to be shared by many users under one client account?

    Many thanks!
    Last edited: Jul 18, 2013
  2. fatbear

    fatbear ISPConfig Developer ISPConfig Developer

    I edited /etc/jailkit/jk_init.ini and changed under [git] the directories entry to be:

    directories = /usr/share/git-core, /repo

    The /repo directory is where the GIT repository is located.

    Then, I went to the ISPConfig GUI:

    Server Config > myhostname > JailKit​

    and changed Jailkit chroot app sections to include git.

    But, this did not make GIT visible when I connected via SSH to one of the JailKit'd usernames.

    Am I on the right track?
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you create a new website to test it? The jail is created once when the first jailed user is created for a new site.

Share This Page