switch user (su) hanging
<p>So I have a strange issue which I'm pretty sure is SSH based.</p>

<p>If I ssh direct it works fine:</p>

<pre><code>ssh user@domain &lt;host&gt;
</code></pre>

<p>If I then sudo to root this also works fine:</p>

<pre><code>sudo su -
</code></pre>

<p>However If i subsequently su to a user from root it hangs for around 30-60 seconds then times out.</p>

<pre><code>su - &lt;user&gt;
</code></pre>

<p>Eventually it does switch user. Likewise once I've su'd, if i exit my shell and go back up to root it will also hang.</p>

<p>Any ideas? There's nothing in /var/log/secure other than pam authentication messages.</p>

<p>Also I'm not sure whether "su" uses SSH under the hood? but I've noticed that rsync also has the same hanging issues and I do believe rsync DOES use SSH.</p>