kill -9 -1

This is a discussion on kill -9 -1 within the Security forums, part of the Help category; Hi all, I was going through the book "Hacking Ubuntu" by Neil Krawetz, in this book it is said that never do kill -9 -1 as root. in my office ...

Go Back   Unix Linux Forum > Unix > Linux > Help > Security

FixUnix.com - Unix Linux Forums

Unix Content Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 07-16-2008, 11:27 AM
Default kill -9 -1

Hi all,

I was going through the book "Hacking Ubuntu" by Neil Krawetz, in this
book it is said that never do kill -9 -1 as root.

in my office i tried this command as root on an RHEL4 machine

but there was'nt any system crash as i expected only the x-server got
crashed, and the commands like ps, ls were n't giving any o/p.

when i rebooted the machine everything was back to normal

my question why init process wasn't killed ?
Reply With Quote
  #2  
Old 07-16-2008, 04:08 PM
Default Re: kill -9 -1

aarklon@gmail.com :

> I was going through the book "Hacking Ubuntu" by Neil Krawetz, in this
> book it is said that never do kill -9 -1 as root.
>
> in my office i tried this command as root on an RHEL4 machine
>
> but there was'nt any system crash as i expected only the x-server got
> crashed, and the commands like ps, ls were n't giving any o/p.
>
> when i rebooted the machine everything was back to normal
>
> my question why init process wasn't killed ?


"A PID of -1 is special; it indicates all processes except the kill process
itself and init."

Next time, read "man 1 kill" before asking ...

--
Freedom is always the freedom of dissenters.
(Rosa Luxemburg)
Reply With Quote
Reply

Thread Tools


All times are GMT -5. The time now is 07:10 AM.

In an effort to better serve ads to our visitors, cookies are used on Fixunix.com. For more information, check out our Privacy Policy.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Ad Management by RedTyger