From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,c730695fa5025e72,start X-Google-Attributes: gidfee84,public From: carrier@chabot.ced.berkeley.edu (Stephen Carrier) Subject: boot single-user paradox Date: 1995/12/09 Message-ID: <4aanm1$b92@agate.berkeley.edu>#1/1 X-Deja-AN: 121377554 organization: College of Natural Resources, UC Berkeley newsgroups: comp.unix.osf.osf1 This is a simple thing, I want the system to prompt for root password when it comes up single-user, for reasons that are easy to imagine. Analyzing the boot-up scripts leads to a strange paradox. Looking at /etc/inittab for runstate "S" the only thing called is "/sbin/rc0 shutdown". Walking through the code of the rc0 script with "shutdown" as parameter leads to the following interpretation: rc0 does some stuff, then calls "init S". I don't see how this can fail to cause an infinite loop, yet the system boots. (I would like to put something like "exec login" at the exit point, but examination does now show an exit point. This isn't important to the paradox.) Also, the shell that starts on the console ought to be explicitly invoked somehow. Perhaps the how of that invokation is a related question. Any guruistic insight mightily appreciated. Stephen Paul Carrier carrier@nature.berkeley.edu UNIX Systems Analyst (510)643-7861 College of Natural Resources University of California at Berkeley