<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">mine is <br>-rw-r--r-- 1 rancid other 279 Mar 16 2011 .cshrc <br></div><div class="gmail_default" style="font-family:verdana,sans-serif">
and I have no issues.<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">You should be running as the rancid user, not root.<br></div><div class="gmail_default" style="font-family:verdana,sans-serif">
<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Sep 12, 2013 at 11:51 AM, Ryan Milton <span dir="ltr"><<a href="mailto:rmilton@mvsusa.com" target="_blank">rmilton@mvsusa.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="#3366FF" vlink="#9900FF" lang="EN-US">
<div>
<p class="MsoNormal"><span style>Well, I was attempting to run as rancid. I don’t know how it would run “normally”.<u></u><u></u></span></p>
<p class="MsoNormal"><span style><u></u> <u></u></span></p>
<p class="MsoNormal"><span style>Here is what I show: <u></u><u></u></span></p>
<p class="MsoNormal"><span style><u></u> <u></u></span></p>
<p class="MsoNormal"><span style>-rwxr-x--- 1 rancid rancid 1946 Sep 6 15:57 .cloginrc<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"">I think that is chmod 750 .cloginrc (now). Would I make it something different?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><u></u> <u></u></span></p>
<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 src="cid:image002.jpg@01CEAFAE.6DA34530" alt="MVS final logo GOOD very small" border="0" height="76" width="192"><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"> Tom Simpson [mailto:<a href="mailto:tosimpson@forchtgroup.com" target="_blank">tosimpson@forchtgroup.com</a>]
<br>
<b>Sent:</b> Thursday, September 12, 2013 11:39 AM<br>
<b>To:</b> Ryan Milton; <a href="mailto: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>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif"">The .cloginrc doesn't have the proper permissions set for the rancid user. Or are you running it as someone else?<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif""><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif""><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif"">Mine is<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif""><u></u> <u></u></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif"">-rw-rw----. 2 apache rancid 4429 Aug 27 10:12 .cloginrc<u></u><u></u></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif""><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif""><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif"">I tend to login as the rancid user, sudo su – rancid for testing purposes, since I disallow ssh login to the server for any user except normal users…<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif""><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif""><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif""><u></u> <u></u></span></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif"">-- <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas">Thanks,<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas">Tom Simpson<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas">LAN/WAN Engineer<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas">Forcht Group of Kentucky<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas">859.259.9700 x538<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas">"We all knew there was just one way to improve our odds for survival:<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas">train, train, train. Sometimes, if your training is properly intense it<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas">will kill you. More often -- much, much more often -- it will save your<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas">life." - Richard Marcinko, former US Navy SEAL Team Commander<u></u><u></u></span></p>
</div>
</div>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif""><u></u> <u></u></span></p>
</div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">From:
</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Ryan Milton <<a href="mailto:rmilton@mvsusa.com" target="_blank">rmilton@mvsusa.com</a>><br>
<b>Date: </b>Thursday, September 12, 2013 10:59 AM<br>
<b>To: </b>"<a href="mailto:rancid-discuss@shrubbery.net" target="_blank">rancid-discuss@shrubbery.net</a>" <<a href="mailto:rancid-discuss@shrubbery.net" target="_blank">rancid-discuss@shrubbery.net</a>><br>
<b>Subject: </b>[rancid] Permissions and files<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif""><u></u> <u></u></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif""><img src="cid:image003.gif@01CEAFAE.6DA34530" border="0" height="110" width="116"><u></u><u></u></span></p>
<div>
<p class="MsoNormal">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 class="MsoNormal"> <u></u><u></u></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"> <u></u><u></u></p>
<p class="MsoNormal">VS:<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">starting: Fri Sep 6 15:57:50 EDT 2013<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">/usr/lib/rancid/bin/control_rancid: 206: /usr/lib/rancid/bin/control_rancid: cannot create routers.db: Permission denied<u></u><u></u></p>
<p class="MsoNormal">comm: file 2 is not in sorted order<u></u><u></u></p>
<p class="MsoNormal">comm: file 2 is not in sorted order<u></u><u></u></p>
<p class="MsoNormal">comm: file 2 is not in sorted order<u></u><u></u></p>
<p class="MsoNormal">cvs add: scheduling file `94.229.11.1' for addition<u></u><u></u></p>
<p class="MsoNormal">cvs add: use `cvs commit' to add this file permanently<u></u><u></u></p>
<p class="MsoNormal">/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 class="MsoNormal">initial revision: 1.1<u></u><u></u></p>
<p class="MsoNormal">Added 94.229.11.1<u></u><u></u></p>
<p class="MsoNormal">cvs add: scheduling file `94.229.11.2' for addition<u></u><u></u></p>
<p class="MsoNormal">cvs add: use `cvs commit' to add this file permanently<u></u><u></u></p>
<p class="MsoNormal">/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 class="MsoNormal">initial revision: 1.1<u></u><u></u></p>
<p class="MsoNormal">Added 94.229.11.2<u></u><u></u></p>
<p class="MsoNormal">cvs add: scheduling file `94.229.11.3' for addition<u></u><u></u></p>
<p class="MsoNormal">cvs add: use `cvs commit' to add this file permanently<u></u><u></u></p>
<p class="MsoNormal">/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 class="MsoNormal">initial revision: 1.1<u></u><u></u></p>
<p class="MsoNormal">Added 94.229.11.3<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">***TRUNCATED***<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">94.229.11.2 jlogin error: Error: couldn't read file "/home/rancid/.cloginrc": permission denied<u></u><u></u></p>
<p class="MsoNormal"><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 class="MsoNormal"><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 class="MsoNormal">94.229.11.3 jlogin error: Error: couldn't read file "/home/rancid/.cloginrc": permission denied<u></u><u></u></p>
<p class="MsoNormal"><a href="http://94.229.11.3" target="_blank">94.229.11.3</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 class="MsoNormal"><a href="http://94.229.11.3" target="_blank">94.229.11.3</a>: End of run not found<u></u><u></u></p>
<p class="MsoNormal">94.229.11.1 jlogin error: Error: couldn't read file "/home/rancid/.cloginrc": permission denied<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">***TRUNCATED***<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><a href="http://94.229.14.250" target="_blank">94.229.14.250</a>: missed cmd(s): show stack,show module,show flash,show version,show system-information,write term,show system information<u></u><u></u></p>
<p class="MsoNormal"><a href="http://94.229.14.250" target="_blank">94.229.14.250</a>: End of run not found<u></u><u></u></p>
<p class="MsoNormal">;<u></u><u></u></p>
<p class="MsoNormal">unknown router manufacturer for <a href="http://94.229.11.218" target="_blank">94.229.11.218</a>: junper<u></u><u></u></p>
<p class="MsoNormal">94.229.11.92 clogin error: Error: couldn't read file "/home/rancid/.cloginrc": permission denied<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">***TRUNCATED***<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><a href="http://94.229.11.210" target="_blank">94.229.11.210</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 class="MsoNormal"><a href="http://94.229.11.210" target="_blank">94.229.11.210</a>: End of run not found<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"> <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"> <u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Regards,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Ryan Milton</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">MVS Network Manager</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">o: 201-447-1505 x124</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">c: 862-249-5230</span><u></u><u></u></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></span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><img src="cid:image004.jpg@01CEAFAE.6DA34530" alt="MVS final logo GOOD very small" border="0" height="76" width="192"></span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif""><u></u> <u></u></span></p>
<div class="MsoNormal" style="text-align:center" align="center"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif"">
<hr size="2" width="100%" align="center">
</span></div>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:gray"><br>
CONFIDENTIALITY NOTICE:<br>
This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received
this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore
does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.<br>
<br>
Forcht Group IT, 2400 South Main Street, Corbin, Ky.</span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
</div>
</div>
</div>
<br>_______________________________________________<br>
Rancid-discuss mailing list<br>
<a href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</a><br>
<a href="http://www.shrubbery.net/mailman/listinfo/rancid-discuss" target="_blank">http://www.shrubbery.net/mailman/listinfo/rancid-discuss</a><br></blockquote></div><br></div>