Article View: news.software.readers
Article #4023Re: nn crashed the system
From: Wuxu Peng
Date: Thu, 29 Apr 1993 02:55
Date: Thu, 29 Apr 1993 02:55
43 lines
2554 bytes
2554 bytes
In article <C67Lsp.8tx@ssi.edc.org> gunther@ssi.edc.org (Gunther Anderson) writes:
>Wuxu Peng (peng@pirates.cs.swt.edu) wrote:
>: Well, I didn't remember whether I typed "./init" or "init".
>: However, my search path puts "." as the first dir, well
>: before "/bin", where "init" resides. Since I did that "init"
>: in <nn-source> dir, that "init" must be nn's.
>
>There are certainly ways that /bin/init would still be found. If you're
>using [t]csh, you would have to 'rehash' before any new programs on your
>path (including '.') are recognized. If that's the case, and you typed
>'init' instead of './init', it would fail to find the init in your local
>directory, and keep hunting until it found another.
>
>However it happened, the larger point is that nn doesn't do this. Only
>/bin/init (well, it's /etc/init for me, but it's the same program no
>matter what) will actually go about killing processes and changing
>runlevels on your machine. If you go looking all through the source code
>to nn, at no point will you find the appropriate function calls to kill
>processes. So give it another shot. I like nn like I liked eating
>dormitory food as a freshman, but at least as many people swear by it as
>swear at it, so it's at least worth a real look.
>
> Gunther Anderson
> gunther@ssi.edc.org
I believe that I am right. But to be more cautious,
I made the following small silly test.
(1) login as the root;
(2) "cd /usr";
(3) Create a file with name "finger" that contains
only one line "echo hi!";
(4) Change the mode of file "finger" using
"chmod 755 finger";
(5) Type "which finger", the system responded
"./finger";
(6) Type "finger", the system responded by
displaying "hi!".
--
--wuxu peng (peng@pirates.cs.swt.edu)
Technical Details
Message-ID:
<1rng2r$94q@pirates.cs.swt.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!ira.uka.de!howland.reston.ans.net!zaphod.mps.ohio-state.edu!swrinde!pirates.cs.swt.edu!not-for-mailReferences:
<1rkt0d$ill@pirates.cs.swt.edu> <C67Lsp.8tx@ssi.edc.org>Show Full Headers
Complete Article Headers
Message-ID: <1rng2r$94q@pirates.cs.swt.edu> Subject: Re: nn crashed the system Date: Thu, 29 Apr 1993 02:55:23 +0000 From: peng@pirates.cs.swt.edu (Wuxu Peng) References: <1rkt0d$ill@pirates.cs.swt.edu> <C67Lsp.8tx@ssi.edc.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!ira.uka.de!howland.reston.ans.net!zaphod.mps.ohio-state.edu!swrinde!pirates.cs.swt.edu!not-for-mail Newsgroups: news.software.readers Organization: Department of Computer Science, Southwest Texas State University Lines: 44 NNTP-Posting-Host: pirates.cs.swt.edu