info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how do i commit as root


From: Derek R. Price
Subject: Re: how do i commit as root
Date: Mon, 06 Nov 2000 14:05:28 -0500

address@hidden wrote:

> I want to put all our dns files in cvs.  however when i try to commit
> as root i get the error.
>
> cvs [commit aborted]: cannot commit files as 'root'
>
> this is somewhat irritating since the commit is part of a larger
> script that does dns integrity checking, automatic updating of the
> serial and HUPing of the named daemon.  since the last task requires
> that the UID be root it is important that i be able to commit files
> to the repository as root.

You don't.  Usually.  You can recompile your CVS with the "ALLOW_ROOT"
(or something like that) internal C Macro defined.  Search the email
archives for "commit" and "root" if you want to know for sure.  You'll
have to filter through all the flames about why you shouldn't do that to
find it, of course.  ;)

I'd probably rewrite my scripts so that everything was checked into CVS
and "sudo ./install.sh" or "sudo make install" did everything you say
your script does, plus set the permissions of the installed files
correctly.  Then I could edit, check out, and check in without root
privledges and only use root privledges for installation.  It's safer
anyhow and the files still won't be installed unless they pass whatever
tests you configured them to pass.  You can always use CVS tags to
restore your last working version when necessary.

Derek

--
Derek Price                      CVS Solutions Architect ( http://CVSHome.org )
mailto:address@hidden     OpenAvenue ( http://OpenAvenue.com )
--
I will not sell land in Florida.
I will not sell land in Florida.
I will not sell land in Florida...

          - Bart Simpson on chalkboard, _The Simpsons_






reply via email to

[Prev in Thread] Current Thread [Next in Thread]