Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 398293 - dev-vcs/gitosis-0.2_p20080825: Add the newly created git user to the ssh group
Summary: dev-vcs/gitosis-0.2_p20080825: Add the newly created git user to the ssh group
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-09 20:55 UTC by Emily Mills
Modified: 2012-11-18 10:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Trivial update to ebuild to also add user to ssh group (gitosis-0.2_p20080825.ebuild,1.31 KB, text/plain)
2012-01-09 20:56 UTC, Emily Mills
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Emily Mills 2012-01-09 20:55:16 UTC
I recently emerged the gitosis package, however I was unable to connect to the server until I added the newly created git user to the ssh group. Otherwise sshd blocked all connections. I believe this is the default behavior of sshd.

The current gitosis tutorial [http://en.gentoo-wiki.com/wiki/Gitosis] recommends that the user modifies /etc/shadow to allow ssh access. I believe adding the user to the ssh group is a more appropriate solution, assuming that the user has not disabled or otherwise modified the allowed groups for sshd. However if that is the case the user is likely aware of this.

I made a trivial modification to the ebuild to also add the git user to the ssh group. I tested it on my machine and this allowed me to immediately clone the gitosis-admin repository after running the gitosis-init command. I did not need to muck about in /etc/shadow.

I'd like to open a discussion about adding this feature to the ebuild. Are there any unintended consequences I am missing?

Reproducible: Always

Steps to Reproduce:
$ sudo emerge gitosis
$ sudo -H -u git gitosis-init < id_rsa.pub
$ git clone git@<server>:gitosis-admin.git
Actual Results:  
A password prompt is presented. sshd will reject any connetions.

Expected Results:  
The repository is cloned into ./gitosis-admin/ using the user's rsa key
Comment 1 Emily Mills 2012-01-09 20:56:25 UTC
Created attachment 298421 [details]
Trivial update to ebuild to also add user to ssh group
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-11-18 10:33:50 UTC
gitosis is being lastrited.