From owner-freebsd-questions Fri Dec 21 15:21:41 2001 Delivered-To: freebsd-questions@freebsd.org Received: from catalyst.sasknow.net (catalyst.sasknow.net [207.195.92.130]) by hub.freebsd.org (Postfix) with ESMTP id 930E937B405 for ; Fri, 21 Dec 2001 15:21:37 -0800 (PST) Received: from localhost (ryan@localhost) by catalyst.sasknow.net (8.11.6/8.11.6) with ESMTP id fBLNO7Y02831; Fri, 21 Dec 2001 17:24:07 -0600 (CST) (envelope-from ryan@sasknow.com) X-Authentication-Warning: catalyst.sasknow.net: ryan owned process doing -bs Date: Fri, 21 Dec 2001 17:24:07 -0600 (CST) From: Ryan Thompson X-X-Sender: To: Cc: Subject: Re: kill -9 -1 In-Reply-To: <20011221220619.A1234@localhost.bsd.net.il> Message-ID: <20011221171634.Q2811-100000@catalyst.sasknow.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Nimrod Mesika wrote to questions@FreeBSD.ORG: > > > $kill -9 -1 > > > > > > And my system died. > > > > > > Can anyone confirm/explain this phenomena? (this is on a fairly > > > recent -stable). > > > > >From the manpage for kill : > > > > The following pids have special meanings: > > -1 If superuser, broadcast the signal to all processes; otherwise > > broadcast to all processes belonging to the user. > > Thanks. I did read the manpage before writing this message and the > above description does not explain the phenomena I have described. Well, it kind of does. Running as a normal user, kill -9 -1 should NOT bring the system down, as, if you are a normal user, you do not have the privilege to kill processes run by anyone else (i.e., root). So, one of two things happened: o You did NOT run kill(1) as a normal user. (Were you perhaps su'd, but didn't know it? For example, if you didn't su -l, your normal user name would still show up, but you would have root permission). Alternatively, maybe your /bin/kill is suid? Try ll /bin/kill and look for any "s" bits in the permissions. Kill should NOT be suid anything. OR o Something is seriously mangled with your system, OR with FreeBSD, but I have just tried kill -9 -1 on a -STABLE box and 4.4-RELEASE box, and only witnessed the killing of all of my processes as a user (but my current shell stayed active). Running kill -9 -1 as root, on the other hand, I would expect the system to shut down to single user mode. (where there is only one virtual terminal, a default (though possibly password-protected, depending on your security settings) root shell, etc). Was this what you experienced? It kind of sounds like it, but your description wasn't too clear. - Ryan -- Ryan Thompson Network Administrator, Accounts SaskNow Technologies - http://www.sasknow.com #106-380 3120 8th St E - Saskatoon, SK - S7H 0W2 Tel: 306-664-3600 Fax: 306-664-1161 Saskatoon Toll-Free: 877-727-5669 (877-SASKNOW) North America To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message