what happens when you just run it as the rancid <span></span>user?<br><br>On Thursday, September 12, 2013, Ryan Milton wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="#3366FF" vlink="#9900FF">
<div>
<p class="MsoNormal"><span style>Ok, I have changed the ownership. I made a test config change on a device, ran rancid and exactly the same as:<u></u><u></u></span></p>
<p class="MsoNormal">sudo -i su -c /var/lib/rancid/bin/rancid-run -s /bin/bash -l rancid<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">gets me: <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">starting: Thu Sep 12 10:53:28 EDT 2013<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">ending: Thu Sep 12 10:53:28 EDT 2013<u></u><u></u></p>
<p class="MsoNormal"><span style><u></u> <u></u></span></p>
<p class="MsoNormal"><span style>So, the config change doesn’t show.<u></u><u></u></span></p>
<p class="MsoNormal"><span style><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Ryan Milton<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">MVS Network Manager<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">o: 201-447-1505 x124<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">c: 862-249-5230<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><a href="http://www.mvsusa.com/" target="_blank"><span style="color:#0563c1">www.mvsusa.com</span></a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><img border="0" width="192" height="76" src="cid:image001.jpg@01CEAFBE.C1B71010" alt="MVS final logo GOOD very small"><u></u><u></u></span></p>
</div>
<p class="MsoNormal"><span style><u></u> <u></u></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext"> Heasley [mailto:<a href="javascript:_e({}, 'cvml', 'heas@shrubbery.net');" target="_blank">heas@shrubbery.net</a>]
<br>
<b>Sent:</b> Thursday, September 12, 2013 1:40 PM<br>
<b>To:</b> Ryan Milton<br>
<b>Cc:</b> <a href="javascript:_e({}, 'cvml', 'rancid-discuss@shrubbery.net');" target="_blank">rancid-discuss@shrubbery.net</a><br>
<b>Subject:</b> Re: [rancid] Permissions and files<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Am Sep 12, 2013 um 16:59 schrieb Ryan Milton <<a href="javascript:_e({}, 'cvml', 'rmilton@mvsusa.com');" target="_blank">rmilton@mvsusa.com</a>>:<u></u><u></u></p>
</div>
<div>
<p><u></u> <u></u></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p><span style="font-family:"Times New Roman","serif";color:windowtext"><image001.gif>
<u></u><u></u></span></p>
<p>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:<u></u><u></u></p>
<p> <u></u><u></u></p>
<p>sudo -i su -c /var/lib/rancid/bin/rancid-run -s /bin/bash -l rancid<u></u><u></u></p>
<p> <u></u><u></u></p>
<p>gets me: <u></u><u></u></p>
<p> <u></u><u></u></p>
<p>starting: Thu Sep 12 10:53:28 EDT 2013<u></u><u></u></p>
<p> <u></u><u></u></p>
<p> <u></u><u></u></p>
<p> <u></u><u></u></p>
<p>ending: Thu Sep 12 10:53:28 EDT 2013<u></u><u></u></p>
<p> <u></u><u></u></p>
<p>VS:<u></u><u></u></p>
<p> <u></u><u></u></p>
<p>starting: Fri Sep 6 15:57:50 EDT 2013<u></u><u></u></p>
<p> <u></u><u></u></p>
<p>/usr/lib/rancid/bin/control_rancid: 206: /usr/lib/rancid/bin/control_rancid: cannot create routers.db: Permission denied<u></u><u></u></p>
</div>
</blockquote>
<div>
<p><span style="font-family:"Times New Roman","serif";color:windowtext"><u></u> <u></u></span></p>
</div>
<p><span style="font-family:"Times New Roman","serif";color:windowtext">Fix that. chown -R rancid /var/rancid<u></u><u></u></span></p>
<div>
<p><span style="font-family:"Times New Roman","serif";color:windowtext"><u></u> <u></u></span></p>
</div>
<div>
<p><span style="font-family:"Times New Roman","serif";color:windowtext"><br>
<br>
<u></u><u></u></span></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p>comm: file 2 is not in sorted order<u></u><u></u></p>
<p>comm: file 2 is not in sorted order<u></u><u></u></p>
<p>comm: file 2 is not in sorted order<u></u><u></u></p>
<p>cvs add: scheduling file `94.229.11.1' for addition<u></u><u></u></p>
<p>cvs add: use `cvs commit' to add this file permanently<u></u><u></u></p>
<p>/var/lib/rancid/CVS/MVSNetwork/configs/<a href="http://94.229.11.1" target="_blank">94.229.11.1</a>,v <-- 94.229.11.1<u></u><u></u></p>
<p>initial revision: 1.1<u></u><u></u></p>
<p>Added 94.229.11.1<u></u><u></u></p>
<p>cvs add: scheduling file `94.229.11.2' for addition<u></u><u></u></p>
<p>cvs add: use `cvs commit' to add this file permanently<u></u><u></u></p>
<p>/var/lib/rancid/CVS/MVSNetwork/configs/<a href="http://94.229.11.2" target="_blank">94.229.11.2</a>,v <-- 94.229.11.2<u></u><u></u></p>
<p>initial revision: 1.1<u></u><u></u></p>
<p>Added 94.229.11.2<u></u><u></u></p>
<p>cvs add: scheduling file `94.229.11.3' for addition<u></u><u></u></p>
<p>cvs add: use `cvs commit' to add this file permanently<u></u><u></u></p>
<p>/var/lib/rancid/CVS/MVSNetwork/configs/<a href="http://94.229.11.3" target="_blank">94.229.11.3</a>,v <-- 94.229.11.3<u></u><u></u></p>
<p>initial revision: 1.1<u></u><u></u></p>
<p>Added 94.229.11.3<u></u><u></u></p>
<p> <u></u><u></u></p>
<p>***TRUNCATED***<u></u><u></u></p>
<p> <u></u><u></u></p>
<p>94.229.11.2 jlogin error: Error: couldn't read file "/home/rancid/.cloginrc": permission denied<u></u><u></u></p>
<p><a href="http://94.229.11.2" target="_blank">94.229.11.2</a>: 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<u></u><u></u></p>
<p><a href="http://94.229.11.2" target="_blank">94.229.11.2</a>: End of run not found<u></u><u></u></p>
<p>94.229.11.3 jlogin error: Error: couldn't read file "/home/rancid/.cloginrc": permission denied<u><</u></p></div></blockquote></div></div>
</div>
</div>
</blockquote>