How to give friend access to git repository without giving command line access?
Posted
by
Jack Humphries
on Stack Overflow
See other posts from Stack Overflow
or by Jack Humphries
Published on 2012-07-10T03:04:52Z
Indexed on
2012/07/10
3:15 UTC
Read the original article
Hit count: 102
I have some git repositories running on my server and I would like to give a friend read/write access to one. That's simple: I add him as a user, give him SSH access, and change the permissions to the repository folder.
Everything works fine; I'm able to clone the git repository using Xcode and change things (ssh://www.example.com/repo.git
). However, I do not want him to have command line access. If I recall correctly, Github does not give command line access to those who SSH in.
I'm using Snow Leopard Server. Is this more of a server issue or a git issue? Do you have any idea where to begin? Setting the user's Login Shell
to none
(as opposed to /bin/bash
) cuts off access to everything.
© Stack Overflow or respective owner