The RPM package creates a system account with
$ useradd -r -g %{name} -d %{gitolite_homedir} -s /bin/sh -c "git repository hosting" %{name}
and Fedora 15's /etc/profile has this code:
# By default, we want umask to get set. This sets it for login shell
# Current threshold for system reserved uid/gids is 200
# You could check uidgid reservation validity in
# /usr/share/doc/setup-*/uidgid file
if [ $UID -gt 199 ] && [ "`id -gn`" = "`id -un`" ]; then
umask 002
else
umask 022
fi
On my Fedora 15 system, gitolite has uid=493 and gid=490, so the umask is 002.
It appears that Fedora's packaging is making a valid decision to treat gitolite as a system account, so should gitolite change its umask before updating ~gitolite/.ssh/authorized_keys?
Blair
This was fixed upstream about 2 months ago; see c7d9529. I haven't
tagged a new revision since then -- maybe I should do that. I'll do
something this weekend, then send an email to the Fedora packager.
regards
sitaram