<div dir="ltr">use controls in the sudoers file to limit the commands the users can run.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 21, 2014 at 2:20 PM, David L. Willson <span dir="ltr">&lt;<a href="mailto:DLWillson@thegeek.nu" target="_blank">DLWillson@thegeek.nu</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>That&#39;ll probably be the way I end up doing it, but what if I wanted to give my user the ability to get a full, interactive login shell with the profile and rc&#39;s of the user they impersonate?</div>

<div><br></div><div><br></div><div><div style="font-size:9px;color:#575757">Sent from my Verizon Wireless 4G LTE Smartphone</div></div><div class=""><br><br><div>-------- Original message --------</div><div>From: Jim Ockers <u></u> </div>

<div>Date:04/21/2014  1:59 PM  (GMT-07:00) </div><div>To: CLUE&#39;s mailing list <u></u> </div></div><div><div class="h5"><div>Subject: Re: [clue] impersonation </div><div><br></div>
<p></p>Hi David,<div><br></div><div>Try: <span style="font-family:monospace">sudo -u otheruser command</span></div><div><p></p><p><br></p><p>Jim<br><br></p><div style>--</div><div style>Jim Ockers, P.E., P.Eng. (<a href="mailto:ockers@ockers.net" target="_blank">ockers@ockers.net</a>)</div>

<div style>Contact info: <a href="http://www.ockers.net/" target="_blank">http://www.ockers.net/</a></div><p></p><blockquote style="border-left:2px solid #325fba;padding-left:5px;margin-left:5px;margin-right:0px">-----Original message-----<br>

<strong>From:</strong> David L. Willson &lt;DLWillson@TheGeek.NU&gt;<br><strong>Sent:</strong> Monday 21st April 2014 12:58<br><strong>To:</strong> CLUE&#39;s mailing list &lt;<a href="mailto:clue@cluedenver.org" target="_blank">clue@cluedenver.org</a>&gt;<br>

<strong>Subject:</strong> [clue] impersonation<br><br>

<div><div style="font-size:12pt;font-family:Times New Roman">How do you let one non-privileged user impersonate (become) another non-privileged user?<span><br><br>When *I* need to impersonate a user, I run: sudo su - some_user, but I don&#39;t want the regular users doing that. Or, do I?<br>

<br><span name="x"></span>--<br>David L. Willson<br>Teacher, Engineer, Evangelist<br>RHCE+Satellite CCAH Network+ A+ Linux+ LPIC-1 UbuntuCP NovellCLA<br>Mobile 720-333-LANS(5267)<br><a href="http://sofree.us" target="_blank">http://sofree.us</a><br>

<br>This is a good time for a r3VOLution.<span name="x"></span><br></span><br></div></div><pre>_______________________________________________<br>
clue mailing list: <a href="mailto:clue@cluedenver.org" target="_blank">clue@cluedenver.org</a><br>
For information, account preferences, or to unsubscribe see:<br>
<a href="http://cluedenver.org/mailman/listinfo/clue" target="_blank">http://cluedenver.org/mailman/listinfo/clue</a></pre>

</blockquote></div>

</div></div></div><br>_______________________________________________<br>
clue mailing list: <a href="mailto:clue@cluedenver.org">clue@cluedenver.org</a><br>
For information, account preferences, or to unsubscribe see:<br>
<a href="http://cluedenver.org/mailman/listinfo/clue" target="_blank">http://cluedenver.org/mailman/listinfo/clue</a><br></blockquote></div><br></div>