You are not logged in.

#1 2014-01-23 08:39:44

lazork
Member
Registered: 2008-11-12
Posts: 30

gitolite and 'git' user

I'm trying to install gitolite following instructions from the wiki (I'm not using the AUR package, but I'm cloning from the official git repository).
The problem is that I cannot add a 'git' user because it already exists. It was created by the git package, which calls:

useradd --system -c 'git daemon user' -g git -d / -s /bin/bash git

I could use this user, but I need it to have a home directory /home/git.
What's the best thing to do? Create a new user 'gitolite' with home directory /home/gitolite, or change the home directory of 'git'?

Offline

#2 2014-01-26 12:25:11

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: gitolite and 'git' user

That git user is added by the git package. I would add a new gitolite user to prevent problems with git 'system' user

Offline

#3 2014-01-28 16:09:05

lazork
Member
Registered: 2008-11-12
Posts: 30

Re: gitolite and 'git' user

I've opted to create a new 'gitolite' user, just to be on the safe and avoid messing with the system 'git' user.
I still don't know whether it would be safe to change the home directory of 'git' (though I assume it would)

Last edited by lazork (2014-01-28 16:53:50)

Offline

#4 2014-01-28 17:27:43

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: gitolite and 'git' user

I assume the same, but wouldn't want risking a strange problem when some update somehow assumes / as $HOME

Offline

Board footer

Powered by FluxBB