Newbie install question

Andrew Fort afort at staff.webcentral.com.au
Wed Sep 5 05:33:47 UTC 2001


>[root at mel1:/usr/local/rancid/logs]$ cat core.20010905.150101
>starting: Wed Sep 5 15:01:01 EST 2001
>
>Trying to get all of the configs.
>All routers sucessfully completed.
>
>cvs diff: in directory .:
>cvs [diff aborted]: there is no version here; run 'cvs checkout' first
>cvs [commit aborted]: cannot commit files as 'root'
>
>ending: Wed Sep 5 15:01:12 EST 2001
>
>Obviously I need to run the scripts as other than root, but 
>knowing nothing
>about cvd, I'm wondering what the cvs checkout stuff is?

Brett, it looks like you possibly didn't run
/usr/local/rancid/bin/create_cvs once you'd set up the groups you want (such
as 'core') in the /usr/local/rancid/bin/env file (LIST_OF_GROUPS variable).
create_cvs can handle if your directories have already been manually created
(e.g., you manually created /usr/local/rancid/core/), but the recommended
method is to just add to the LIST_OF_GROUPS, then run create_cvs.

The way I setup permissions was to create a rancid user (and group), then
set the permissions as (from memory):

chgrp -r rancid /usr/local/rancid/
chmod g+ws /usr/local/rancid/

Then put your admins in the rancid group.

The rancid user has its own ~/.cloginrc naturally, and this user is the one
which 'cleans up' after the admins who forget to 'do-diffs' after they make
changes, i.e., from cron (we do it once an hour, if you run less regularly
than that, be aware of the value of OLDTIME in the /usr/local/rancid/bin/env
should be greater than the number of hours between your 'rancid' cronjobs.

If you're still stuck, try going through the quickstart guide again, I found
it made much more sense the second time...

-afort



More information about the Rancid-discuss mailing list