Thread (22 messages) flat view 22 messages, 9 authors, 2016-06-15

Re: [PATCH] "git shell" won't work, need "git-shell"

From: Mikael Magnusson <hidden>
Date: 2016-06-15 22:45:13

Possibly related (same subject, not in this thread)

2008/8/25 Johannes Schindelin [off-list ref]:
Hi,

On Mon, 25 Aug 2008, Paolo Bonzini wrote:
quoted
quoted
That would involve you actually finding out what's happening, though.
He said so:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help