Re: [PATCH] "git shell" won't work, need "git-shell"
- From
Paolo Bonzini <bonzini@gnu.org>
- Date
- Aug 25, 2008, 11:44 UTC
- Message-ID
- <48B29B2A.6000802@gnu.org>
- In-Reply-To
- <alpine.DEB.1.00.0808251235430.24820@pacific.mpi-cbg.de.mpi-cbg.de>
Show 6 quoted lines
>> At the minimum, git-shell(1) should explain that one needs to use the >> libexec path. > > Or maybe the real issue can be fixed? Namely that your configuration does > not work? That would involve you actually finding out what's happening, > though.
He said so:
Show 21 quoted lines
> The shell field in /etc/passwd is *exec*ed, not interpreted via sh -c > or some such. For example, source of Debian's shadow, containing > /bin/login: > > libmisc/shell.c:80: execle (file, arg, (char *) 0, envp); > > I also tested this for real, and having a > > test:x:1001:1001:,,,:/home/test:/usr/bin/git-shell > > line works, and > > test:x:1001:1001:,,,:/home/test:/usr/bin/git shell > > just makes ssh loop asking for a password, logging > > "User test not allowed because shell /usr/bin/git shell does not exist" > > So, as far as I understand, as it currently is, "git shell" is utterly > useless for what it was meant to do. Restoring "git-shell" will fix > it.
Rephrasing your question, do you (Dscho) actually know *anyone* who has a working setup with "/usr/bin/git shell" in /etc/passwd?
Paolo