From: Paolo Bonzini Date: Mon, 25 Aug 2008 11:44:42 GMT Subject: Re: [PATCH] "git shell" won't work, need "git-shell" Message-ID: <48B29B2A.6000802@gnu.org> In-Reply-To: >> 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: > 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