<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body ><div>That'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'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><br><br><div>-------- Original message --------</div><div>From: Jim Ockers <ockers@ockers.net> </div><div>Date:04/21/2014  1:59 PM  (GMT-07:00) </div><div>To: CLUE's mailing list <clue@cluedenver.org> </div><div>Subject: Re: [clue] impersonation </div><div><br></div>
<p></p>Hi David,<div><br></div><div>Try:&nbsp;<span style="font-family: monospace;">sudo -u otheruser command</span></div><div><p></p><p><br></p><p>Jim<br><br></p><div style="color: rgb(0, 0, 0);">--</div><div style="color: rgb(0, 0, 0);">Jim Ockers, P.E., P.Eng. (<a href="mailto:ockers@ockers.net" target="_self">ockers@ockers.net</a>)</div><div style="color: rgb(0, 0, 0);">Contact info:&nbsp;<a href="http://www.ockers.net/" target="_self">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&nbsp;&lt;DLWillson@TheGeek.NU&gt;<br><strong>Sent:</strong> Monday 21st April 2014 12:58<br><strong>To:</strong> CLUE's mailing list &lt;clue@cluedenver.org&gt;<br><strong>Subject:</strong> [clue] impersonation<br><br><style type="text/css">body { font-family: monospace; }</style><base target="_blank">
<!-- begin sanitized html -->
<style type="text/css">p { margin: 0; }</style><div class="bodyclass"><div style="font-family: Times New Roman; font-size: 12pt; color: #000000">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'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>http://sofree.us<br><br>This is a good time for a r3VOLution.<span name="x"></span><br></span><br></div></div><pre>_______________________________________________<br>
clue mailing list: clue@cluedenver.org<br>
For information, account preferences, or to unsubscribe see:<br>
http://cluedenver.org/mailman/listinfo/clue</pre>
<!-- end sanitized html -->
</blockquote></div>

</body>