From ed13442ca9484b8001f062de5b2c4cc7f9530ef4 Mon Sep 17 00:00:00 2001 From: Yoann Vandoorselaere Date: Thu, 16 Dec 1999 17:48:54 +0000 Subject: *** empty log message *** --- init-sh/level4.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'init-sh/level4.sh') diff --git a/init-sh/level4.sh b/init-sh/level4.sh index 212c3f8..e1bf56d 100755 --- a/init-sh/level4.sh +++ b/init-sh/level4.sh @@ -79,10 +79,6 @@ echo -n "Running lilo to record new config : " /sbin/lilo >& /dev/null echo -e "done.\n" -# /etc/inittab -echo "Disabling direct console access : " -AddRules "1:2345:respawn:/sbin/mingetty tty1" /etc/inittab - # Server update echo "Setting secure level variable to 4 :" AddRules "SECURE_LEVEL=4" /etc/profile @@ -113,3 +109,10 @@ echo "Adding \"normal\" PATH variable :" AddRules "PATH=\$PATH:/usr/X11R6/bin:/usr/games" /etc/profile quiet AddRules "export PATH SECURE_LEVEL" /etc/profile +# Do not boot on a shell +echo -n "Setting up inittab to ask a passwd on boot : " +tmpfile=`mktemp /tmp/secure.XXXXXX` +cp /etc/inittab ${tmpfile} +cat ${tmpfile} | sed s'/\/bin\/bash --login/\/sbin\/mingetty tty1/' > /etc/inittab +rm -f ${tmpfile} +echo "done." \ No newline at end of file -- cgit v1.2.1