git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Unhappy git in a jailshell?
@ 2009-11-02 12:16 Alex MDC
  2009-11-02 12:47 ` Dmitry Potapov
  0 siblings, 1 reply; 4+ messages in thread
From: Alex MDC @ 2009-11-02 12:16 UTC (permalink / raw)
  To: git

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

All these commands fail with the error "git: git-xxx is not a
git-command. See git --help". However most other every-day commands
work just fine (add, status, commit...)

I've been in contact with the server admins and they kindly upgraded
git to the latest 1.6.5.2 release but that didn't help. I enquired
about the contents of `git --exec-path` (as I don't have access from
the jailshell) and they said that all the "missing" commands are
present in that directory.

I also tried "git --help -all" but that doesn't show any commands in
the output! In a way I'm wondering how it is working at all...

So I guess my question is, why are some commands working but not
others? If all commands are treated uniformly by using the command
binary from the libexec dir it would seem as though all commands
should work or all should be "missing".

Also, are they any ideas on how to get the missing commands to work?

Thanks for your help,
Alex MDC

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Unhappy git in a jailshell?
  2009-11-02 12:16 Unhappy git in a jailshell? Alex MDC
@ 2009-11-02 12:47 ` Dmitry Potapov
  2009-11-02 13:51   ` Michael J Gruber
  0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Potapov @ 2009-11-02 12:47 UTC (permalink / raw)
  To: Alex MDC; +Cc: git

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.


Dmitry

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Unhappy git in a jailshell?
  2009-11-02 12:47 ` Dmitry Potapov
@ 2009-11-02 13:51   ` Michael J Gruber
  2009-11-04  1:17     ` Alex MDC
  0 siblings, 1 reply; 4+ messages in thread
From: Michael J Gruber @ 2009-11-02 13:51 UTC (permalink / raw)
  To: Dmitry Potapov; +Cc: Alex MDC, git

Dmitry Potapov venit, vidit, dixit 02.11.2009 13:47:
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Unhappy git in a jailshell?
  2009-11-02 13:51   ` Michael J Gruber
@ 2009-11-04  1:17     ` Alex MDC
  0 siblings, 0 replies; 4+ messages in thread
From: Alex MDC @ 2009-11-04  1:17 UTC (permalink / raw)
  To: Michael J Gruber, Dmitry Potapov; +Cc: git

Hi guys,

I requested the admins allow access to the `git --exec-path` directory
from the jailshell and incredibly, they granted it! Now everything is
working and "git --help --all" lists all the commands as expected, so
that was indeed the problem.

It was just a bit deceiving at first that some git commands were
working but others weren't, but Dmitry explained that one.

Thanks for your help,
Alex

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-11-04  1:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-02 12:16 Unhappy git in a jailshell? Alex MDC
2009-11-02 12:47 ` Dmitry Potapov
2009-11-02 13:51   ` Michael J Gruber
2009-11-04  1:17     ` Alex MDC

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).