<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Title" content="">
<meta name="Keywords" content="">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Arial;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle23
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle24
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle25
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle27
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.msoIns
        {mso-style-type:export-only;
        mso-style-name:"";
        text-decoration:underline;
        color:teal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:56.7pt 42.5pt 56.7pt 85.05pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body bgcolor="white" lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Sorry, forgot the –c.  I’m running clogin for some diagnostic stuff, but the same principle applies:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-family:"Consolas",sans-serif">su -l -c "clogin -x stackstate-error-cmds.txt ${device}" rancid<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Consolas",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal">--Chris<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="mso-line-height-rule:exactly;-webkit-text-size-adjust:100%;white-space:nowrap;"><br /><table cellpadding="0" cellspacing="0" border="0" style="background-color:#FFFFFF;border-collapse:collapse;font-size:0;line-height:16.66px;"><tr><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:13.33px;color:#26446E;font-style:normal;font-weight:normal;text-decoration:none;"><tr><td align="left" style="vertical-align:top;text-align:left;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;font-weight:bold;">Chris Gauthier</td><td align="left" style="vertical-align:top;text-align:left;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;white-space:normal;">  </td><td align="left" style="vertical-align:top;text-align:left;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;">Senior Network Engineer</td><td align="left" style="vertical-align:top;text-align:left;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;white-space:normal;"> | </td><td align="left" style="vertical-align:top;text-align:left;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;">comScore, Inc.</td></tr></table></td></tr><tr><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:13.33px;color:#26446E;font-style:normal;font-weight:normal;text-decoration:none;"><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:13.33px;color:#26446E;font-style:normal;font-weight:normal;text-decoration:none;"><tr><td align="left" style="vertical-align:top;text-align:left;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;">o +1 </td><td align="left" style="vertical-align:top;text-align:left;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;"><a href="tel:503-331-2704" target="_blank" id="LPlnk689713" style="color:#26446E;text-decoration:none;"><strong style="font-weight:normal;">503-331-2704</strong></a></td><td align="left" style="vertical-align:top;text-align:left;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;white-space:normal;">  </td><td align="left" style="vertical-align:top;text-align:left;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;"><a href="mailto:cgauthier@comscore.com" target="_blank" id="LPlnk689713" style="color:#26446E;text-decoration:none;"><strong style="font-weight:normal;">cgauthier@comscore.com</strong></a></td></tr></table></td></tr><tr><td align="left" style="vertical-align:top;text-align:left;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;">317 SW Alder St, Suite 500 | Portland | OR 97204</td></tr></table></td></tr><tr style="white-space:normal;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="width:100%;border-collapse:collapse;font-size:13.33px;color:#000001;font-style:normal;font-weight:normal;text-decoration:none;"><tr><td align="left" style="vertical-align:top;text-align:left;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;">............................................................................................................................................................................................................................</td></tr></table></td></tr><tr style="white-space:normal;"><td align="left" style="padding:10px 0 0;vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:13.33px;color:#F7A000;font-style:normal;font-weight:normal;text-decoration:none;"><tr><td align="left" style="vertical-align:top;text-align:left;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;"></td></tr></table></td></tr></table><br /></div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:.5in"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">Vacheslav <m_zouhairy@skno.by><br>
<b>Date: </b>Tuesday, October 3, 2017 at 7:49 AM<br>
<b>To: </b>"Gauthier, Chris" <cgauthier@comscore.com>, 'Alexander Griesser' <AGriesser@anexia-it.com>, "rancid-discuss@shrubbery.net" <rancid-discuss@shrubbery.net><br>
<b>Subject: </b>RE: [rancid] problem with rancid crontab<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
<p class="MsoNormal" style="margin-left:.5in"><span style="color:#1F497D">~ # su –l “/tmp/test.sh” rancid</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="color:#1F497D">No passwd entry for user '–l'</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="color:#1F497D"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:.5in"><b><span lang="RU">From:</span></b><span lang="RU"> Gauthier, Chris [mailto:cgauthier@comscore.com]
<br>
<b>Sent:</b> Tuesday, October 3, 2017 5:44 PM<br>
<b>To:</b> Vacheslav <m_zouhairy@skno.by>; 'Alexander Griesser' <AGriesser@anexia-it.com>; rancid-discuss@shrubbery.net<br>
<b>Subject:</b> Re: [rancid] problem with rancid crontab</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:.5in"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">I fixed that by running:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">su –l “/tmp/test.sh” rancid<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">The “-l” says to make it a login shell so the environment variables will load.<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-family:"Arial",sans-serif">--Chris</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> <o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"> </span><o:p></o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="margin-left:.5in;background:white;border-collapse:collapse">
<tbody>
<tr>
<td valign="top" style="padding:0in 0in 0in 0in">
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
<tbody>
<tr>
<td valign="top" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#26446E">Chris Gauthier</span></b><o:p></o:p></p>
</td>
<td valign="top" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#26446E">  </span><o:p></o:p></p>
</td>
<td valign="top" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#26446E">Senior Network Engineer</span><o:p></o:p></p>
</td>
<td valign="top" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#26446E"> | </span><o:p></o:p></p>
</td>
<td valign="top" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#26446E">comScore, Inc.</span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td valign="top" style="padding:0in 0in 0in 0in">
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
<tbody>
<tr>
<td valign="top" style="padding:0in 0in 0in 0in">
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
<tbody>
<tr>
<td valign="top" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#26446E">o +1 </span><o:p></o:p></p>
</td>
<td valign="top" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#26446E"><a href="tel:503-331-2704" target="_blank"><strong><span style="font-family:"Arial",sans-serif;color:#26446E;font-weight:normal;text-decoration:none">503-331-2704</span></strong></a></span><o:p></o:p></p>
</td>
<td valign="top" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#26446E">  </span><o:p></o:p></p>
</td>
<td valign="top" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#26446E"><a href="mailto:cgauthier@comscore.com" target="_blank"><strong><span style="font-family:"Arial",sans-serif;color:#26446E;font-weight:normal;text-decoration:none">cgauthier@comscore.com</span></strong></a></span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td valign="top" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#26446E">317 SW Alder St, Suite 500 | Portland | OR 97204</span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td valign="top" style="padding:0in 0in 0in 0in">
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100.0%;border-collapse:collapse">
<tbody>
<tr>
<td valign="top" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#000001">............................................................................................................................................................................................................................</span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td valign="top" style="padding:7.5pt 0in 0in 0in">
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
<tbody>
<tr>
<td valign="top" style="padding:0in 0in 0in 0in"></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"> </span><o:p></o:p></p>
</div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:1.0in"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">Rancid-discuss <<a href="mailto:rancid-discuss-bounces@shrubbery.net">rancid-discuss-bounces@shrubbery.net</a>> on behalf of Vacheslav <<a href="mailto:m_zouhairy@skno.by">m_zouhairy@skno.by</a>><br>
<b>Date: </b>Tuesday, October 3, 2017 at 7:37 AM<br>
<b>To: </b>'Alexander Griesser' <<a href="mailto:AGriesser@anexia-it.com">AGriesser@anexia-it.com</a>>, "<a href="mailto:rancid-discuss@shrubbery.net">rancid-discuss@shrubbery.net</a>" <<a href="mailto:rancid-discuss@shrubbery.net">rancid-discuss@shrubbery.net</a>><br>
<b>Subject: </b>Re: [rancid] problem with rancid crontab</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:1.0in"> <o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-left:1.0in"><span style="color:#1F497D">Well it didn’t run because when I su rancid and execute:<br>
/root $ /tmp/test.sh</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="color:#1F497D">bash: /tmp/test.sh: /bin/sh^M: bad interpreter: No such file or directory</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="color:#1F497D">running: sh /tmp/test.sh</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="color:#1F497D">produces  a log file with the following content:</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="color:#1F497D">/root</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="color:#1F497D">How to fix the script?</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="color:#1F497D"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:1.0in"><b><span lang="RU">From:</span></b><span lang="RU"> Alexander Griesser [<a href="mailto:AGriesser@anexia-it.com">mailto:AGriesser@anexia-it.com</a>]
<br>
<b>Sent:</b> Tuesday, October 3, 2017 4:53 PM<br>
<b>To:</b> Vacheslav <<a href="mailto:m_zouhairy@skno.by">m_zouhairy@skno.by</a>>;
<a href="mailto:rancid-discuss@shrubbery.net">rancid-discuss@shrubbery.net</a><br>
<b>Subject:</b> AW: [rancid] problem with rancid crontab</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:1.0in"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE">I’m not sure if your answer means that the problem is solved now or not; if it isn’t, please add the following testscript as a cronjob and check the output:</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE">Create the file „/tmp/envtest.sh“ with the following content:</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE">#!/bin/sh</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE">export > /tmp/envtest.log</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE">set >> /tmp/envtest.log</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE">pwd >> /tmp/envtest.log</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE">Save it and run `chmod 755 /tmp/envtest.sh`.</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE">Add the following line to your crontab:</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">0                             * *   *   *                          rancid                   /tmp/envtest.sh<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">Wait a minute and check /tmp/envtest.log; you should see the environment and current working directory in the logfile then which might help to diagnose this issue.<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">Best,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:1.0in"><b><span lang="DE-AT" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">Alexander Griesser</span></b><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE-AT" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black">Head of Systems Operations</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE-AT" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE-AT" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">ANEXIA Internetdienstleistungs GmbH</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE-AT" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE-AT" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black">E-Mail:
<a href="mailto:AGriesser@anexia-it.com"><span style="color:blue">AGriesser@anexia-it.com</span></a>
</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE-AT" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black">Web:
<a href="http://www.anexia-it.com/"><span style="color:blue">http://www.anexia-it.com</span></a>
</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE-AT" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE-AT" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#595959">Anschrift Hauptsitz Klagenfurt: Feldkirchnerstraße 140, 9020 Klagenfurt</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE-AT" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#595959">Geschäftsführer: Alexander Windbichler</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE-AT" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#595959">Firmenbuch: FN 289918a | Gerichtsstand: Klagenfurt | UID-Nummer: AT U63216601</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:1.0in"><b><span lang="DE">Von:</span></b><span lang="DE"> Vacheslav [<a href="mailto:m_zouhairy@skno.by">mailto:m_zouhairy@skno.by</a>]
<br>
<b>Gesendet:</b> Dienstag, 3. Oktober 2017 15:45<br>
<b>An:</b> Alexander Griesser <<a href="mailto:AGriesser@anexia-it.com">AGriesser@anexia-it.com</a>>;
<a href="mailto:rancid-discuss@shrubbery.net">rancid-discuss@shrubbery.net</a><br>
<b>Betreff:</b> RE: [rancid] problem with rancid crontab</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="color:#1F497D">Well if it were properly set, the error would be clear.<br>
rancid:x:103:101:added by portage for rancid:/var/rancid:/bin/bash</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="color:#1F497D">Thanks for the answer.</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="color:#1F497D"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:1.0in"><b><span lang="RU">From:</span></b><span lang="RU"> Alexander Griesser [<a href="mailto:AGriesser@anexia-it.com">mailto:AGriesser@anexia-it.com</a>]
<br>
<b>Sent:</b> Tuesday, October 3, 2017 4:16 PM<br>
<b>To:</b> Vacheslav <<a href="mailto:m_zouhairy@skno.by">m_zouhairy@skno.by</a>>;
<a href="mailto:rancid-discuss@shrubbery.net">rancid-discuss@shrubbery.net</a><br>
<b>Subject:</b> AW: [rancid] problem with rancid crontab</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:1.0in"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE">Hi,</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE">You can set the CWD to ~rancid first and then execute „rancid-run“, but this is (at least to my experience) not necessary if the home directory for your rancid user iss et properly in /etc/passwd.</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE">What does `grep rancid /etc/passwd` return on your system? Is /var/rancid liste das the home directory for this account?</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE">Best,</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:1.0in"><b><span lang="DE-AT" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">Alexander Griesser</span></b><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE-AT" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black">Head of Systems Operations</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE-AT" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE-AT" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">ANEXIA Internetdienstleistungs GmbH</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE-AT" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE-AT" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black">E-Mail:
<a href="mailto:AGriesser@anexia-it.com"><span style="color:blue">AGriesser@anexia-it.com</span></a>
</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE-AT" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black">Web:
<a href="http://www.anexia-it.com/"><span style="color:blue">http://www.anexia-it.com</span></a>
</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE-AT" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE-AT" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#595959">Anschrift Hauptsitz Klagenfurt: Feldkirchnerstraße 140, 9020 Klagenfurt</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE-AT" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#595959">Geschäftsführer: Alexander Windbichler</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE-AT" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#595959">Firmenbuch: FN 289918a | Gerichtsstand: Klagenfurt | UID-Nummer: AT U63216601</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:1.0in"><b><span lang="DE">Von:</span></b><span lang="DE"> Rancid-discuss [<a href="mailto:rancid-discuss-bounces@shrubbery.net">mailto:rancid-discuss-bounces@shrubbery.net</a>]
<b>Im Auftrag von </b>Vacheslav<br>
<b>Gesendet:</b> Dienstag, 3. Oktober 2017 14:23<br>
<b>An:</b> <a href="mailto:rancid-discuss@shrubbery.net">rancid-discuss@shrubbery.net</a><br>
<b>Betreff:</b> [rancid] problem with rancid crontab</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:1.0in"><span lang="DE"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">Peace, <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">I configured crontab as root as such:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">0                             */6 *   *   *                          rancid                   /usr/bin/rancid-run<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"># Clean out config differ logs5<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">0                             23  *   *   *                           rancid                   /usr/bin/find /var/rancid/logs -type f -mtime +2 -exec rm {} \<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">But an error is logged:<br>
clogin error: Error: password file (//.cloginrc) does not exist<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">I do not understand what the path // is. The .cloginrc file is in /var/rancid<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:1.0in">Or is it absolutely necessary to run cron as user rancid?
<br>
p.s I’m using rancid 3.7<o:p></o:p></p>
</div>
</body>
</html>