git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question around git-shell usage in Everyday Git
@ 2006-02-01 23:01 Alan Chandler
  2006-02-01 23:21 ` Junio C Hamano
  2006-02-01 23:30 ` Linus Torvalds
  0 siblings, 2 replies; 9+ messages in thread
From: Alan Chandler @ 2006-02-01 23:01 UTC (permalink / raw)
  To: git

In the Repository Administrator section of the Everyday Git document it shows 
how to allocate accounts to developers so that you can have fine grained 
control over access to the repository (I assume it is because of that.  
Otherwise I assume you would do what I have done, and that is create a "git" 
user, with a home directory where you want to locate your repositories and 
then tell your users to put the following sort of entry in .git/remotes/xxx

URL:git@host.com:repository.git

and in ~git/.ssh/authorized_keys putting all the developers public keys.

).  But the example shows creating independant home directories for each of 
the developers - but then limiting their access by giving them git-shell as 
their shell.

I assume they would then user a .git/remotes entry of the form
URL:host.com:/absolute/path/to/repositories

My question, in this case is there any reason (such as git creating home 
directoriy temp files or something) why each developer could not have their 
home directory as the root of all the repositories (ie where my git user in 
the above example had its home directory).

This would then mean each user (unless he had a real account on that machine) 
would then use the following in .git/remotes

URL:host.com:repository.git

Which has the advantage of not revealing exactly where on your filesystem you 
have chosen to store the repository (or more precisely allowing you to move 
it without all users having to change their.git/remotes urls)


-- 
Alan Chandler
http://www.chandlerfamily.org.uk
Open Source. It's the difference between trust and antitrust.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-02-02 21:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-01 23:01 Question around git-shell usage in Everyday Git Alan Chandler
2006-02-01 23:21 ` Junio C Hamano
2006-02-01 23:30   ` Junio C Hamano
2006-02-01 23:37   ` Linus Torvalds
2006-02-02  0:04     ` Junio C Hamano
2006-02-02  5:17     ` Alan Chandler
2006-02-02  5:44       ` Junio C Hamano
2006-02-02 21:23         ` Alan Chandler
2006-02-01 23:30 ` Linus Torvalds

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).