Discussion:
unknown
1970-01-01 00:00:00 UTC
Permalink
--089e0111da1ecb6f7c04f24ce233
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable <div dir="ltr"><div>I was hopeful about this, as it sounded good, but no luck.� Adding the -- option didn&#39;t help, and even su&#39;ing into an interactive shell for the rancid user and running the command without the sudo didn&#39;t help.<br> <br></div>Thanks for the suggestion, though!<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 13, 2014 at 11:06 AM, Per-Olof Olsson <span dir="ltr">&lt;<a href="mailto:***@chalmers.se" target="_blank">***@chalmers.se</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">heasley wrote 2014-02-13 16:40:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Thu, Feb 13, 2014 at 10:22:11AM -0500, Andrew Ohnstad:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks for the response.  The full command line I am using is (I<br>
automatically am enabled via TACACS+):<br>
<br>
sudo -u rancid /usr/libexec/rancid/clogin -u&lt;my-username&gt; -p&lt;my-password&gt;<br>
-c where &lt;router&gt;<br>
<br>
If I add the -d argument to see the expect debugging, I can see that it<br>
launches the ssh spawn with the correct username, but it is blatantly<br>
disregarding the password supplied on the command line...<br>
<br>
spawn ssh -c 3des -x -l &lt;myusername&gt; &lt;router&gt;<br>
</blockquote>
<br>
this should work; what version of rancid?<br></div></div><div class="">
______________________________<u></u>_________________<br>
Rancid-discuss mailing list<br>
<a href="mailto:Rancid-***@shrubbery.net" target="_blank">Rancid-***@shrubbery.net</a><br>
<a href="http://www.shrubbery.net/mailman/listinfo/rancid-discuss" target="_blank">http://www.shrubbery.net/<u></u>mailman/listinfo/rancid-<u></u>discuss</a><br>
<br>
</div></blockquote>
<br>
sudo -l[l] [-AknS] [-g group name | #gid] [-p prompt] [-U user name] [-u user name | #uid] [command]<br>
is sudo using -p option for it&#39;s on to set a prompt? -u for own username...<br>
<br>
test<br>
  &quot;sudo -u rancid -- /usr/libexec/rancid/clogin -u&lt;my-username&gt; -p&lt;my-password&gt; -c where &lt;router&gt;&quot;<br>
<br>
Loading...