git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Unhappy git in a jailshell?

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Nov 2, 2009, 13:51 UTC
Message-ID
<4AEEE3D2.9040905@drmicha.warpmail.net>
In-Reply-To
<20091102124746.GA27126@dpotapov.dyndns.org>
Dmitry Potapov venit, vidit, dixit 02.11.2009 13:47:
Show 20 quoted lines
> On Mon, Nov 02, 2009 at 11:16:43PM +1100, Alex MDC wrote:
>> Hello,
>>
>> I'm trying to use git on a linux server, but unfortunately I've only
>> been granted jailshelled access. Most of git works, but some commands
>> just fail to run, e.g.
>> git repack
>> git rebase
>> git index-pack
> 
> Most Git commands are builtin, so they are executed by git.exe directly,
> but some commands are implemented as separate binaries or shell files.
> These commands require `git --exec-path` in PATH to run. Normally, git
> adds `git --exec-path` in its environment before running them.
> 
> Apparently, jailshelled access prevents that somehow. So, I suggest you
> contact your system administrator and tell him that you need to be able
> to run files from `git --exec-path` to being able to use git, as git
> needs them internally for normal work.
> 

Can you (Alex) find out whether you are allowed to run those binaries from that path directly? In that case we could rethink our strategy and adjust for the case where we can't set the environment.

Michael
Previous: Dmitry PotapovNext: Alex MDC
Message 3 of 4 in “Unhappy git in a jailshell?”
  1. Alex MDCNov 2, 2009
  2. Dmitry PotapovNov 2, 2009
  3. Michael J GruberNov 2, 2009
  4. Alex MDCNov 4, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.