From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8c9b,d7f4074992f809a0 X-Google-Attributes: gidf8c9b,public X-Google-Thread: 1164f8,d7f4074992f809a0 X-Google-Attributes: gid1164f8,public X-Google-Thread: 1020c6,d7f4074992f809a0 X-Google-Attributes: gid1020c6,public From: brian@hercules.cb.att.com (Brian Bebeau) Subject: Re: Q: Cannot kill LOGIN processes by superuser Date: 1995/06/09 Message-ID: #1/1 X-Deja-AN: 104150427 sender: news@nntpa.cb.att.com (Netnews Administration) references: <3r5lgc$b3o@nuscc.nus.sg> <3r6utc$7n8@nntp.interaccess.com> organization: AT&T reply-to: brian@hercules.cb.att.com newsgroups: comp.unix.questions,comp.unix.admin,comp.sys.dec In article <3r6utc$7n8@nntp.interaccess.com>, Robert Owen Thomas 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 |