How to update jail for a ssh user?

Discussion in 'Installation/Configuration' started by Guillaume, Oct 21, 2012.

  1. Guillaume

    Guillaume New Member

    Hi everyone,

    I wonder if any of you could help: I recently added git to the jail applications via the ISPConfig's control panel. It works just fine when I create a SSH user for a website that did not have any SSH users before (which is the case for all of my websites but one).

    However for the website I'd like to use GIT for, I tried deleting the current SSH user and creating a new one but git still won't work.

    Would anyone see how to update the jail for one website/user?

    Thanks in advance.
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Take a look at the jk_cp command:

    Code:
    man jk_cp
     
  3. Guillaume

    Guillaume New Member

    Thanks!

    The following command did the trick:
    Code:
    jk_cp -j /var/www/clients/client1/web1/ -o -v /usr/bin/git*
    I also had to copy a few libraries that were missing but it might be because I tried a few things before (including a jail_update) that might have deleted them:

    Code:
    jk_cp -j /var/www/clients/client1/web1/ -o -v /lib/libpthread.so.0 /usr/lib/libpthread.so /lib64/libpthread.so.0 /usr/lib64/libpthread.so
    Everything seems to be working just fine now, I'll got a play with my new toy a bit :)

    Thanks again for the quick reply.
    Guillaume.
     

Share This Page