Discussion:
unknown
1970-01-01 00:00:00 UTC
Permalink
Fix that. chown -R rancid /var/rancid
Ok,****
I got you. Seems everything in /var/lib/rancid/bin is root:****
** **
-rwxr-xr-x 1 root root 67004 Mar 5 2012 rancid****
-rwxr-xr-x 1 root root 4420 Mar 5 2012 rancid-cvs****
** **
Regards,****
Ryan Milton****
MVS Network Manager****
o: 201-447-1505 x124****
c: 862-249-5230****
www.mvsusa.com****
[image: MVS final logo GOOD very small]****
** **
*Sent:* Thursday, September 12, 2013 2:52 PM
*To:* Ryan Milton
*Subject:* Re: [rancid] Permissions and files****
** **
Not what I meant.****
su - rancid****
then do
pwd
then
/var/lib/rancid/bin/rancid-run****
Where did "/usr/bin/rancid-run" come from? Because that is different then
what you were trying to run before. ****
** **
** **
**
Ok, so since I’m following various guides (mostly the “Ubuntu server
install), I am assuming that the command is /usr/bin/rancid-run.****
****
****
gives me: ****
starting: Thu Sep 12 14:44:17 EDT 2013****
****
****
****
ending: Thu Sep 12 14:44:17 EDT 2013****
****
Regards,****
Ryan Milton****
MVS Network Manager****
o: 201-447-1505 x124****
c: 862-249-5230****
www.mvsusa.com****
[image: MVS final logo GOOD very small]****
****
*Sent:* Thursday, September 12, 2013 2:22 PM
*To:* Ryan Milton
*Subject:* Re: [rancid] Permissions and files****
****
what happens when you just run it as the rancid user?
On Thursday, September 12, 2013, Ryan Milton wrote:****
Ok, I have changed the ownership. I made a test config change on a
device, ran rancid and exactly the same as:****
sudo -i su -c /var/lib/rancid/bin/rancid-run -s /bin/bash -l rancid****
****
gets me: ****
****
starting: Thu Sep 12 10:53:28 EDT 2013****
****
****
****
ending: Thu Sep 12 10:53:28 EDT 2013****
****
So, the config change doesn’t show.****
****
Regards,****
Ryan Milton****
MVS Network Manager****
o: 201-447-1505 x124****
c: 862-249-5230****
www.mvsusa.com****
[image: MVS final logo GOOD very small]****
****
*Sent:* Thursday, September 12, 2013 1:40 PM
*To:* Ryan Milton
*Subject:* Re: [rancid] Permissions and files****
****
****
<image001.gif> ****
I don’t know where to go on this. I can’t tell if my Rancid configuration
is even working. I’m at the point of testing rancid-run manually to see
what happens. I am getting a combination of “Permission Denied” errors on
the .cloginrc file, “End of Run Not found” errors, and some others that I
excerpted below. That said, I have an example of the file in
/var/log/rancid from today and from Friday:****
****
sudo -i su -c /var/lib/rancid/bin/rancid-run -s /bin/bash -l rancid****
****
gets me: ****
****
starting: Thu Sep 12 10:53:28 EDT 2013****
****
****
****
ending: Thu Sep 12 10:53:28 EDT 2013****
****
VS:****
****
starting: Fri Sep 6 15:57:50 EDT 2013****
****
/usr/lib/rancid/bin/control_rancid: cannot create routers.db: Permission
denied****
****
Fix that. chown -R rancid /var/rancid****
****
****
comm: file 2 is not in sorted order****
comm: file 2 is not in sorted order****
comm: file 2 is not in sorted order****
cvs add: scheduling file `94.229.11.1' for addition****
cvs add: use `cvs commit' to add this file permanently****
/var/lib/rancid/CVS/MVSNetwork/configs/94.229.11.1,v <-- 94.229.11.1****
initial revision: 1.1****
Added 94.229.11.1****
cvs add: scheduling file `94.229.11.2' for addition****
cvs add: use `cvs commit' to add this file permanently****
/var/lib/rancid/CVS/MVSNetwork/configs/94.229.11.2,v <-- 94.229.11.2****
initial revision: 1.1****
Added 94.229.11.2****
cvs add: scheduling file `94.229.11.3' for addition****
cvs add: use `cvs commit' to add this file permanently****
/var/lib/rancid/CVS/MVSNetwork/configs/94.229.11.3,v <-- 94.229.11.3****
initial revision: 1.1****
Added 94.229.11.3****
****
***TRUNCATED*******
****
94.229.11.2 jlogin error: Error: couldn't read file
"/home/rancid/.cloginrc": permission denied****
94.229.11.2: missed cmd(s): show chassis alarms,show chassis hardware
detail,show system license,show chassis scb,show chassis feb,show chassis
routing-engine,show chassis firmware,show version detail,show chassis feb
detail,show configuration,show system boot-messages,show chassis cfeb,show
chassis clocks,show chassis sfm detail,show chassis ssb,show chassis fpc
detail,show chassis environment,show system core-dumps****
94.229.11.2: End of run not found****
94.229.11.3 jlogin error: Error: couldn't read file
"/home/rancid/.cloginrc": permission denied*<*****
** **
--bcaec517ccb28324d704e6349184
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">
Loading...