Hi Robert,
Since yesterday I have the same trouble.
So I looked closer to the problem, and surprisingly it comes from pam.
Here is what I've found:
By strace'ing su I discovered that the time wasted at exit was due to a
huge ftruncate call (something was truncating the .xauth/root/<your X
display> file to about 1Gbyte, and then mmap'ing this in RAM) thus
driving the kernel crazy.
I then further discovered that this was the pam_xauth module that was
causing this. So I put it in debug (adding debug in the /etc/pam.d/su
file just in front of then pam_xauth line).
Then I grabbed the source, and had a look to them. I find that at some
point an uninitalized variable (a.size struct member) was used, so its
value could be anything.
Anyway, here is a patch if someone wants to include it:
--- pam_xauth.orig.c Fri Feb 1 14:41:52 2002
+++ pam_xauth.c Fri Feb 1 14:44:25 2002
@@ -577,6 +577,7 @@
a.context=Source;
a.type=Map;
a.level=RdWr|Create;
+ a.size=-1;
/* refcount may need to be up to 1 character larger; may need to
a trailing space and cookie if they aren't there to facilitate
upgrades from old versions that didn't keep track of the cookie
Brice Figureau
On Wed, 2002-01-30 at 13:06, Robert Fox wrote:
> It's not really a problem, but lately (as of the latest Cooker) - when I
> open a BASH terminal under KDE - then I su to root - do some stuff and
> type exit, there is an echo of the word exit on the screen and an
> unusual pause of several seconds before it returns to the normal use
> account - and when I type exit from the normal windows there is another
> pause.
>
> This does not happen under a normal ASCII screen (Ctrl-Alt-F1) outside
> of the X server.
>
> Strange.
>
> R.Fox
>
>
>
>
>