git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Mikael Magnusson" <mikachu@gmail.com>
To: "Johannes Schindelin" <Johannes.Schindelin@gmx.de>
Cc: "Paolo Bonzini" <bonzini@gnu.org>,
	"Tommi Virtanen" <tv@eagain.net>,
	"Junio C Hamano" <gitster@pobox.com>,
	"Git Mailing List" <git@vger.kernel.org>
Subject: Re: [PATCH] "git shell" won't work, need "git-shell"
Date: Mon, 25 Aug 2008 20:25:38 +0200	[thread overview]
Message-ID: <237967ef0808251125q3e50fa04wf0e97ff29298bef2@mail.gmail.com> (raw)
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>:
> 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

  reply	other threads:[~2008-08-25 18:26 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-24 20:23 [PATCH] "git shell" won't work, need "git-shell" Tommi Virtanen
2008-08-24 20:36 ` Junio C Hamano
2008-08-24 20:38   ` Tommi Virtanen
2008-08-24 21:20     ` Junio C Hamano
2008-08-24 22:25       ` Tommi Virtanen
2008-08-25 10:37         ` Johannes Schindelin
2008-08-25 11:44           ` Paolo Bonzini
2008-08-25 17:58             ` Johannes Schindelin
2008-08-25 18:25               ` Mikael Magnusson [this message]
2008-08-25 20:08                 ` Johannes Schindelin
2008-08-25 20:28                   ` Johannes Schindelin
2008-08-25 20:51                     ` [PATCH 1/2] git wrapper: Make while loop more reader-friendly Johannes Schindelin
2008-08-25 20:52                       ` [PATCH 2/2] git wrapper: execute git-shell when argv[1] is '-c' Johannes Schindelin
2008-08-25 21:03                         ` Tommi Virtanen
2008-08-25 22:05                           ` Johannes Schindelin
2008-08-25 22:20                             ` Tommi Virtanen
2008-08-26  0:52                               ` Johannes Schindelin
2008-08-26  6:53                                 ` Matthieu Moy
2008-08-26 17:43                                   ` Junio C Hamano
2008-08-26  8:50                       ` [PATCH 1/2] git wrapper: Make while loop more reader-friendly Mike Ralphson
2008-08-25 17:08       ` [PATCH] "git shell" won't work, need "git-shell" Petr Baudis
2008-08-25 17:20         ` Dmitry Potapov
2008-08-25 17:26           ` Tommi Virtanen
2008-08-25 17:53             ` Dmitry Potapov
2008-08-25 18:17           ` Johannes Schindelin
2008-08-25 20:26             ` Dmitry Potapov
2008-08-25 20:40             ` Mike Hommey
2008-10-28 11:11 ` Dmitry V. Levin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=237967ef0808251125q3e50fa04wf0e97ff29298bef2@mail.gmail.com \
    --to=mikachu@gmail.com \
    --cc=Johannes.Schindelin@gmx.de \
    --cc=bonzini@gnu.org \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=tv@eagain.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).