Re: [PATCH] "git shell" won't work, need "git-shell"
- From
- Mikael Magnusson <mikachu@gmail.com>
- Date
- Aug 25, 2008, 18:25 UTC
- Message-ID
- <237967ef0808251125q3e50fa04wf0e97ff29298bef2@mail.gmail.com>
- In-Reply-To
- <alpine.DEB.1.00.0808251955490.24820@pacific.mpi-cbg.de.mpi-cbg.de>
2008/8/25 Johannes Schindelin <Johannes.Schindelin@gmx.de>:
Show 16 quoted lines
> Hi, > > On Mon, 25 Aug 2008, Paolo Bonzini wrote: > >> > That would involve you actually finding out what's happening, though. >> >> He said so: >> >> > 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" > > Okay, so this means that you cannot pass arguments to the login shell. > Makes me wonder... I had the impression that bash was called with --login.
When you login, a '-' is prepended in argv[0], ie, bash checks if it's called "-bash". This is documented in man bash, but I couldn't find it in man login or man agetty, not sure where else it might be written down.
-- Mikael Magnusson