[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Jailkit-users] How to setup GIT properly in a jailed environment

From: Olivier Sessink
Subject: Re: [Jailkit-users] How to setup GIT properly in a jailed environment
Date: Thu, 03 Feb 2011 22:10:52 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20101208 Thunderbird/3.1.7

On 02/03/2011 03:34 PM, Tom Handy wrote:

I am running Jailkit v2.11 on an Unbuntu server 10.04.

We use this server for multiple functions. At the moment we use it
for testing of website and running a git repository.

We also wanted to jail the git users to that they could not actually
logon to the gitserver but could access it though git tools on their
local machine.

STEP 1: Install git on the server&  create a shared central
repository apt-get install git-core adduser git mkdir /var/git/

STEP 2: Add a jailed user who can access the shared central
repository adduser --ingroup git username jk_jailuser -s
/usr/bin/git-shell -m -j /home/jail "username" cd
/home/jail/home/username/ mkdir git mount -o bind /var/git/ git/

The guys were testing the system and it turns out that certain git
commands where not available to the jailed users. So I imported the
git-core libraries from /usr/lib/git-core to the jail withe the
following command jk_cp -j /home/jail/ /usr/lib/git-core/*

Now for the problem... Some of these git commands use linux commands
like uname which just generate the "command not found"  error.

are these git commands scripts? if so you could read the scripts and copy the required binaries? Else I'm afraid you have to find them by trial and error....

good luck..


Bluefish website http://bluefish.openoffice.nl/
Blog http://oli4444.wordpress.com/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]