Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Re: Q: Cannot kill LOGIN processes by superuser
  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   ` Ong Guan Sin
  0 siblings, 2 replies; 7+ messages in thread
From: Jeff Prichard @ 1995-06-08  4:00 UTC (permalink / raw)


On 8 Jun 1995, Ong Guan Sin wrote:
> Dear Unix people out there,
> We have a user who cannot log into our Ultrix system. Apparently there are a
> number of idle "login" processes under his uid. The strange thing is that the
> processes cannot be killed even by superuser. "kill -9" under superuser gives
> no error or warning but the procceses stay the same. When I did "su" to his
> uid, my process just hung there. Is it a widely known Unix bug? For your info,
> the system is an Ultrix 4.4 running on a DECsystem 5500. A more general
> question, assuming the statement in man pages that "kill -9 is a sure kill" is
> untrue, is under what circumstances can a process not killable even by
> superuser?
> 
Try:
stop <pid>

where pid is the processes id number of his hung login shell. Once the 
hung login shell is terminated the processes spawned from that should 
also disappear.	If they don't but the login shell does stop, try 
using the kill then. "stop <pid>" Also works to log out users.
			Jeff
***************************************************************************
 				Jeff Prichard
			  Assistant Network Manager
Riverside University High School		Phone (414) 964 - 1658
jeffp@sqruhs.ruhs.uwm.edu			Fax   (414) 964 - 2321
>Never before have so few done so much for so many for so little..........<
***************************************************************************





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Q: Cannot kill LOGIN processes by superuser
  1995-06-08  4:00 ` Jeff Prichard
@ 1995-06-08  4:00   ` Robert Owen Thomas
  1995-06-09  4:00     ` Brian Bebeau
  1995-06-09  4:00   ` Ong Guan Sin
  1 sibling, 1 reply; 7+ messages in thread
From: Robert Owen Thomas @ 1995-06-08  4:00 UTC (permalink / raw)


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.
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.

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



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Q: Cannot kill LOGIN processes by superuser
@ 1995-06-08  4:00 Ong Guan Sin
  1995-06-08  4:00 ` Jeff Prichard
  0 siblings, 1 reply; 7+ messages in thread
From: Ong Guan Sin @ 1995-06-08  4:00 UTC (permalink / raw)


Dear Unix people out there,

We have a user who cannot log into our Ultrix system. Apparently there are a
number of idle "login" processes under his uid. The strange thing is that the
processes cannot be killed even by superuser. "kill -9" under superuser gives
no error or warning but the procceses stay the same. When I did "su" to his
uid, my process just hung there. Is it a widely known Unix bug? For your info,
the system is an Ultrix 4.4 running on a DECsystem 5500. A more general
question, assuming the statement in man pages that "kill -9 is a sure kill" is
untrue, is under what circumstances can a process not killable even by
superuser?

Any help or advice would be much appreciated. If you can, please post and mail.
Thanks in advance.

--
01010101010101010101010101010101010101010101010101010101010101010101010101
1  Ong Guan Sin                       E-Mail: cceonggs@nus.sg            0
0  Computer Centre                            ongnsn@singnet.com.sg      1
1  National University of Singapore   Voice : +65 7726420(O) 4680954(R)  0
01010101010101010101010101010101010101010101010101010101010101010101010101




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Q: Cannot kill LOGIN processes by superuser
  1995-06-08  4:00 ` Jeff Prichard
  1995-06-08  4:00   ` Robert Owen Thomas
@ 1995-06-09  4:00   ` Ong Guan Sin
  1 sibling, 0 replies; 7+ messages in thread
From: Ong Guan Sin @ 1995-06-09  4:00 UTC (permalink / raw)
  To: jeffp

Jeff Prichard <jeffp@sqruhs.ruhs.uwm.edu> wrote:
>On 8 Jun 1995, Ong Guan Sin wrote:
>> Dear Unix people out there,
>> We have a user who cannot log into our Ultrix system. Apparently there are a
>> number of idle "login" processes under his uid. The strange thing is that the
>> processes cannot be killed even by superuser. "kill -9" under superuser gives
[sniped]
>Try:
>stop <pid>
>
>where pid is the processes id number of his hung login shell. Once the 
>hung login shell is terminated the processes spawned from that should 
>also disappear.	If they don't but the login shell does stop, try 
>using the kill then. "stop <pid>" Also works to log out users.
>			Jeff

Thanks for the advice, but it does not work. :-( 
Perhaps I must highlight the fact that the processes are *NOT* login *shell*;
they are just the /bin/login processes, command line being something like
"login -h 99.99.99.99 -p". The login processes stop after the last login time
and motd were dislayed, but before exec'ing the login shell. The last login
time displayed is always correct, i.e. it is updated even by each successive
hung login process.

Anyone, please help.

--
01010101010101010101010101010101010101010101010101010101010101010101010101
1  Ong Guan Sin                       E-Mail: cceonggs@nus.sg            0
0  Computer Centre                            ongnsn@singnet.com.sg      1
1  National University of Singapore   Voice : +65 7726420(O) 4680954(R)  0
01010101010101010101010101010101010101010101010101010101010101010101010101




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Q: Cannot kill LOGIN processes by superuser
  1995-06-08  4:00   ` Robert Owen Thomas
@ 1995-06-09  4:00     ` Brian Bebeau
  1995-06-12  4:00       ` Ong Guan Sin
  0 siblings, 1 reply; 7+ messages in thread
From: Brian Bebeau @ 1995-06-09  4:00 UTC (permalink / raw)


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  	|




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Q: Cannot kill LOGIN processes by superuser
  1995-06-09  4:00     ` Brian Bebeau
@ 1995-06-12  4:00       ` Ong Guan Sin
  1995-06-12  4:00         ` Ong Guan Sin
  0 siblings, 1 reply; 7+ messages in thread
From: Ong Guan Sin @ 1995-06-12  4:00 UTC (permalink / raw)
  To: brian

brian@hercules.cb.att.com (Brian Bebeau) wrote:
>
[sniped]
>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.

After thorough investigation into the system, I have found the culprit: a
"pine" process, which is already holding exclusive lock over the user's
mailbox, was waiting for something to happen, probably some system resource.
And those "login" processes stuck at the point of checking mailbox status (any
new mail). I am pretty sure the login processes are waiting for the mailbox to
be available as their WCHANs (waiting channels) are similar and pointing to the
mailbox's in-core inode location. One thing I still cannot figure is what is
the "pine" process waiting for. I know its WCHAN, which is completely different
(and different range) from the previous WCHANs, but just could not figure what
it represents. Can anyone advise on what are the things a WCHAN value can
represent, or what is the way to relate a WCHAN value to the resources it
represents? I managed to solve the unable to login situation, by moving the
mailbox around (producing different inode location), but those processes
("pine" and "login") are still dangling.

>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.

The user id is 2323, so I suppose has nothing to do with what you said. But can
I ask, what would be the consequences if user ids below 100 are given to users?

>
>-- 
>===============================================================================
>Brian Bebeau			|  IBS at AT&T Network Systems
>brian@hercules.cb.att.com  	|
>

--
01010101010101010101010101010101010101010101010101010101010101010101010101
1  Ong Guan Sin                       E-Mail: cceonggs@nus.sg            0
0  Computer Centre                            ongnsn@singnet.com.sg      1
1  National University of Singapore   Voice : +65 7726420(O) 4680954(R)  0
01010101010101010101010101010101010101010101010101010101010101010101010101




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Q: Cannot kill LOGIN processes by superuser
  1995-06-12  4:00       ` Ong Guan Sin
@ 1995-06-12  4:00         ` Ong Guan Sin
  0 siblings, 0 replies; 7+ messages in thread
From: Ong Guan Sin @ 1995-06-12  4:00 UTC (permalink / raw)
  To: cceonggs

Just to add: I can confirm that the user id (2323) is 100% unique in our system
environment. So no question of interlocking by other users.


--
01010101010101010101010101010101010101010101010101010101010101010101010101
1  Ong Guan Sin                       E-Mail: cceonggs@nus.sg            0
0  Computer Centre                            ongnsn@singnet.com.sg      1
1  National University of Singapore   Voice : +65 7726420(O) 4680954(R)  0
01010101010101010101010101010101010101010101010101010101010101010101010101




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1995-06-12  4:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
1995-06-12  4:00       ` Ong Guan Sin
1995-06-12  4:00         ` Ong Guan Sin
1995-06-09  4:00   ` Ong Guan Sin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox