"Best Way" to inhibit halting of workstations

Mike Raffety sunloop!oconnor!porsche!miker at central.sun.com
Sat May 6 04:15:43 AEST 1989


Brent Chapman ({cogsci,lll-tis,uunet}!capmkt!brent) says:
>  You must do the mv & cp before beginning because the current /etc/init
>  file is "busy" (because the program is running) and can't be modified.

/etc/init is compiled to NOT page (i.e., pure executable), so that you CAN
delete/update it without crashing your system (when it goes to page out of
a non-existent or changed file).

I like the binary patch to /etc/init, but instead of the custom "sq"
program, a simpler solution might be to make a hard (or soft) link called
"sq" (or any other two letter name, to match the space used in /etc/init
for "sh") to /bin/login, which will do just as effective a job of keeping
the machine safe.

Also, if you screw up your /etc/init so that it's unusable, you can use an
undocumented flag to boot, "-i", to specify an alternate version of
/etc/init to use (e.g., /etc/init.orig, like "> b sd(0,0,0)vmunix -i
/etc/init.orig").  Of course, anyone else can, too, so once you've
verified your modification works, delete the unsecure version of
/etc/init.



More information about the Comp.sys.sun mailing list