News for hackers. Stuff that matters.
Re:Gitlab 5.0 released, Gitolite now gone by teraflop on Friday March 22, 2013 @05:09PM (#5425788)
> That command doesn't use the shell set in /etc/passwd at all

Yes it does. https://github.com/SimonWilkinson/openssh/blob/master/sessio...

Re:Gitlab 5.0 released, Gitolite now gone by Hello71 on Friday March 22, 2013 @05:18PM (#5425850)
Regardless:

  AUTHORIZED_KEYS FILE FORMAT
  ....
      command="command"
             Specifies that the command is executed whenever this key is used for
             authentication.  The command supplied by the user (if any) is
             ignored.  The command is run on a pty if the client requests a pty;
             otherwise it is run without a tty.  If an 8-bit clean channel is
             required, one must not request a pty or should specify no-pty.  A
             quote may be included in the command by quoting it with a backslash.
             This option might be useful to restrict certain public keys to per‐
             form just a specific operation.  An example might be a key that per‐
             mits remote backups but nothing else.  Note that the client may
             specify TCP and/or X11 forwarding unless they are explicitly prohib‐
             ited.  The command originally supplied by the client is available in
             the SSH_ORIGINAL_COMMAND environment variable.  Note that this
             option applies to shell, command or subsystem execution.  Also note
             that this command may be superseded by either a sshd_config(5)
             ForceCommand directive or a command embedded in a certificate.
Re:Gitlab 5.0 released, Gitolite now gone by __david__ on Friday March 22, 2013 @06:07PM (#5426091)
Got it, so the shell is still /bin/bash but they specify the command in the .ssh/authorize_keys file which means it cannot be overridden by the user. (I was under the mistaken impression that gitolite overrode the shell and not the command)

So your original point was correct: as long as the authorized_keys file is not corrupted, everything is good. Thanks for helping me understand!

Re:Gitlab 5.0 released, Gitolite now gone by sytse on Friday March 22, 2013 @06:12PM (#5426112)
You can find the commands that are allowed in the GitLab-shell here https://github.com/gitlabhq/gitlab-shell/blob/master/lib/git...