From: brian@hercules.cb.att.com (Brian Bebeau)
Subject: Re: Q: Cannot kill LOGIN processes by superuser
Date: 1995/06/09 [thread overview]
Message-ID: <D9x00z.C8r@nntpa.cb.att.com> (raw)
In-Reply-To: 3r6utc$7n8@nntp.interaccess.com
In article <3r6utc$7n8@nntp.interaccess.com>,
Robert Owen Thomas <robt@flowbee.interaccess.com> wrote:
>there are two occasions where even the superuser, armed with a "kill -9"
>can not kill a process:
>1. zombie process -- this is a process who no longer has a connection to
> a parent. normally, init will grab such orphans. when init fails to
> do so, the process turns zombie. only a reboot will clear a zombie
> from the process table.
Well, not quite. A zombie is simply a process that has already performed
an exit(), but the parent hasn't done a wait() for it. Even if it's a
zombie, the parent can still do a wait() to clean it up. init will only
grab it when it _is_ an orphan, that is, if the parent has already
exited. init should then clean it up okay. In any event, it seems unlikely
that a zombie would cause the problems described in the original post.
>2. waiting for I/O -- the process is waiting for some I/O action, probably
> disk. although the process DOES catch the -9 signal, it will block
> the signal until the I/O action is completed. it will then die.
This is more likely the case. A process that goes to sleep with a priority
less than PZERO (usually defined in /usr/include/sys/param.h or some such
place) will simply queue up signals but not respond to them until the
priority is restored to greater than PZERO. This usually happens in device
drivers, as the poster above stated. If a process is in a critical section
and needs some system resource that isn't available, it'll go to sleep
with the lower priority. I've seen this happen most often waiting for a
tape device to become free. The only way I've seen to get rid of such
processes so far is to simply reboot.
As far as the original poster's problem goes, *what* user id are you trying
to use? And what are the processes running with that id? It sounds like
you may be trying to give someone a userid that's already used by
something, not necessarily a user. Generally speaking, it's not a good
idea to give users an id below 100. Ids below 100 are recommended to be used
only by system processes, like root, sys, uucp, etc. More information
would be helpful.
>regarding the user who can not login: have you tried "su user" (note:
>no dash)? examine the user's entry in /etc/passwd -- are there any
>hidden spaces or characters? set list, under vi, will show you some
>otherwise hidden characters.
>
>good luck!
>
>regards,
>--robert
>
>--
> o Robert Owen Thomas -- Cymru Consulting, Inc. o
> o Unix: Admin, Networking, Security, Internet, RDBMS, App Development o
> o e-mail: robt@cymru.com or info@cymru.com o
> o vox: 708.686.3600 fax: 708.686.3600 (it works, trust me) o
> o "When I die, I want to go sleeping like my grandfather... o
> o Not screaming like the passengers in his car!" o
--
===============================================================================
Brian Bebeau | IBS at AT&T Network Systems
brian@hercules.cb.att.com |
next prev parent reply other threads:[~1995-06-09 4:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-06-08 4:00 Q: Cannot kill LOGIN processes by superuser Ong Guan Sin
1995-06-08 4:00 ` Jeff Prichard
1995-06-08 4:00 ` Robert Owen Thomas
1995-06-09 4:00 ` Brian Bebeau [this message]
1995-06-12 4:00 ` Ong Guan Sin
1995-06-12 4:00 ` Ong Guan Sin
1995-06-09 4:00 ` Ong Guan Sin
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox