[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Full-Disclosure] Idea
- To: D B <geggam692000@yahoo.com>
- Subject: Re: [Full-Disclosure] Idea
- From: Valdis.Kletnieks@vt.edu
- Date: Fri, 22 Aug 2003 00:43:44 -0400
On Thu, 21 Aug 2003 11:12:06 PDT, D B <geggam692000@yahoo.com> said:
> install the services .... get them configured
> ...remove all booting hardware except the drive ....
> then change the roots shell to /bin/false and and
> remove all working shells from the OS
Hmm.. Gonna be fun the next reboot, if *anything* in /etc/rc* is still a shell
script. In fact, I just checked - Solaris, AIX, IRIX, and RedHat Linux will
*all* fail to get even as far as single-user mode, because in /etc/inittab we
have:
Solaris: fs::sysinit:/sbin/rcS sysinit
AIX: brc::sysinit:/sbin/rc.boot 3 >/dev/console 2>&1 # Phase 3 of system boot
IRIX: mt::sysinit:/etc/brc </dev/console >/dev/console 2>&1
RedHat: si::sysinit:/etc/rc.d/rc.sysinit
/sbin/rcS, /sbin/rc.boot, /etc/brc, and /etc/rc.d/rc.sysinit are all shell scripts.
Tru64 *will* make it as far single-user mode, but won't make it to runlevel 2 or 3:
Tru64: s2:23:wait:/sbin/rc2 < /dev/console > /dev/console 2>&1
And of course, single-user mode won't be very useful without a shell for root.
PGP signature