On Thu, 17 Jan 2002 [EMAIL PROTECTED] wrote:

> Ah - so that begs the question - how do you have a root shell running on
> the console without signing on first?

I had one in my "hints and tips" talk from this past summer.
It is embedded below.   Change your inittab to run this
instead of 'sulogin' or a getty:

#!/bin/sh
#
#
#         Name: /sbin/suloginv (shell script)
#               console root shell for Linux in a virtual machine
#         Date: 2000-Sep-16 (Sun)
#
#

CONSOLE="$1"
if [ -z "$CONSOLE" ] ; then CONSOLE=/dev/console ; fi
PS1=`hostname`
#PS1="$PS1 # "
PS1="$PS1 \\\$ "
export PS1
SHELL=/bin/sh
if [ -x /sbin/sh ] ; then SHELL=/sbin/sh ; fi
exec $SHELL -i 0<$CONSOLE 1>$CONSOLE 2>$CONSOLE

Reply via email to