From: Neal Kreitzinger <nkreitzinger@gmail.com>
To: unlisted-recipients:; (no To-header on input)
Cc: git@vger.kernel.org
Subject: Re: how to restrict git to specific non-root superuser
Date: Fri, 04 May 2012 22:29:42 -0500 [thread overview]
Message-ID: <4FA49EA6.8030000@gmail.com> (raw)
In-Reply-To: <jo20t5$e8n$1@dough.gmane.org>
On 5/4/2012 8:48 PM, Neal Kreitzinger wrote:
> I work on systems where 'everyone' has the root password (that problem
> is somewhat out of my hands). Is there a technique to setup git so that
> only a certain non-root superuser (ie, gittech) is allowed to run git
> commands? I don't want people logged in as root to mess up the git repos.
>
> I'm considering using git for deployment and some anonymous root user
> messing it up would be a very, very, bad thing. Maybe this proposition
> is theoretically impossible. Maybe someone has implemented this concept
> in practice.
>
I'm thinking a way to achieve this effect is:
install git under the home dir of the 'gittech' user and add that path
only to the PATH of 'gittech'.
have the git repos under the 'gittech' home dir with worktree(s)
assigned to deployment locations. If people mess with the worktrees I
will be able to tell with git status via 'gittech'.
v/r,
neal
next prev parent reply other threads:[~2012-05-05 3:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-05 1:48 how to restrict git to specific non-root superuser Neal Kreitzinger
2012-05-05 3:29 ` Neal Kreitzinger [this message]
2012-05-05 5:07 ` Sitaram Chamarty
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FA49EA6.8030000@gmail.com \
--to=nkreitzinger@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).