Subject: Re: su to root hangs...
To: Don Ray <email@example.com>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
Date: 08/29/1997 10:03:35
> Whenever I log into one of my NetBSD boxes as myself and try to su
> into root, after the password authentication, it just hangs (I have
> to ctrl-c to get my shell back).
> If I ps -x as root from a different log in, I see the su process is hung:
> 28857 p0 I<+ 0:00.03 _csh -m (su)
> Anyone have an idea?
I have no idea what's wrong, but I have an idea for how to track it
Log in as yourself. Note the process ID of your shell.
Log in as root and start a ktrace on the shell, with the -i flag.
Try the su. ^C it when it hangs.
Stop the ktrace, either with ktrace -C from the root session or by
logging out of your session.
kdump the file and find out what syscall is getting stuck. The last
dozen or so lines of the trace probably contain the critical
7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B