From: Nicolas Sebrecht <nicolas.s.dev@gmx.fr>
To: Nazri Ramliy <ayiehere@gmail.com>
Cc: Git Mailing List <git@vger.kernel.org>,
Nicolas Sebrecht <nicolas.s.dev@gmx.fr>
Subject: Re: How to prevent changes to repository by root
Date: Wed, 16 Jun 2010 17:09:51 +0200 [thread overview]
Message-ID: <20100616150951.GA13073@vidovic> (raw)
In-Reply-To: <AANLkTikLixhYITdJKMFb3Hw2hZvaas1DtiV3x9ThCTZz@mail.gmail.com>
The 14/06/10, Nazri Ramliy wrote:
> I have a git repository owned by a non-privileged user account on a
> machine that is logged into (via ssh) by multiple users. These multiple users,
> all of them (not at at the same time) do "git pull" on this repository.
>
> Everything is fine as long as they don't do the "git pull" as root.
>
> Murphy's law and all, someone is bound to do "git pull" as root on that repo
> and that would sometime cause problem for the non-privileged user (who 'own')
> the git repo to do subsequent git operations on that repository.
>
> My question is:
>
> How do I limit any action on this repository to this non-privileged user only?
Don't give root access to your users. This is the only sane thing to do
in the unix world. ,-p
--
Nicolas Sebrecht
next prev parent reply other threads:[~2010-06-16 15:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-14 3:12 How to prevent changes to repository by root Nazri Ramliy
2010-06-16 15:09 ` Nicolas Sebrecht [this message]
2010-06-16 16:09 ` Aneurin Price
2010-06-17 2:28 ` Nazri Ramliy
2010-06-18 20:45 ` Pete Harlan
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=20100616150951.GA13073@vidovic \
--to=nicolas.s.dev@gmx.fr \
--cc=ayiehere@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.