Re: How to prevent changes to repository by root
- From
Nazri Ramliy <ayiehere@gmail.com>
- Date
- Jun 17, 2010, 02:28 UTC
- Message-ID
- <AANLkTimjIraq-qDaifACixJ4cCOYuvkf1v-hVpeaVt3u@mail.gmail.com>
- In-Reply-To
- <AANLkTikPNH1ueb5m8JpiB2hU4afd3hv-4qYqSO3QPujl@mail.gmail.com>
On Thu, Jun 17, 2010 at 12:09 AM, Aneurin Price <aneurin.price@gmail.com> wrote:
Show 5 quoted lines
> How are they becoming root? If they are using sudo you could forbid > running git as root. If they are using su or logging in directly maybe > you can get away with some trivial thing like putting 'alias > git=/bin/false' in /root/.bashrc - or some wrapper which does > something helpful rather than silently fail :-).
Thanks for dropping the hint on wrapper.
I've implemented one that give the user a friendly reminder that they are running git as root and ask whether to continue.
nazri.