<br><br><div class="gmail_quote">On Sat, Aug 28, 2010 at 11:29 PM, Yaron <span dir="ltr"><<a href="mailto:tclug@freakzilla.com">tclug@freakzilla.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Sat, 28 Aug 2010, Robert Nesius wrote:<br>
<br>
</div><div class="im"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
BUT - if you log in via ssh as a non-root user you could run strace against the su command. 'strace -f -o /tmp/strace.out su - user'. <br>
</blockquote>
<br></div>
Hey, good idea. Assuming it'll actually do it for su. And lets a user strace all the way up (; definitely worth a try.<br><br></blockquote><div><br>Yep - and notice the '-' in the su command. I would see if you can reproduce the lag with and without the '-'. <br>
<br>su - user # invokes a new login shell that completely sources the user's login files<br>su user # changes identity without sourcing the target user's login files. <br><br>If 'su - <username>' triggers the delay, but 'su <username>' doesn't, the problem is in the login environment. <br>
<br>-Rob<br> <br></div></div>