Skip to contentSkip to conversation

chrooting git daemon?

DISCUSSION Jan Klod 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore

Jan Klod

author
#0 lore raw

Hello,
please, is that hard / complicated to run git daemon in chroot and what are the steps to do it best?
Do you consider it useless precaution there?

Jan

#1 lore raw

11 jun 2009 kl. 17.30 skrev Jan Klod:

Quoted 4 lines

Hello,
please, is that hard / complicated to run git daemon in chroot and what are the steps to do it best?
Do you consider it useless precaution there?

You do know that chroot is not a security tool, right? If you do want security measures, I'd suggest setting up SSH accounts with the login shell set to git-shell. The main difference is that you can have any number of trees served from the same machine without handling them all by the same service instance. If you wanted to accomplish the same with git-daemon, you'd have to let all of them listen to different ports. At least that's how I understand it.

BR / Klas