aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh/level0.sh
diff options
context:
space:
mode:
authorYoann Vandoorselaere <yoann@mandriva.com>1999-12-16 17:48:54 +0000
committerYoann Vandoorselaere <yoann@mandriva.com>1999-12-16 17:48:54 +0000
commited13442ca9484b8001f062de5b2c4cc7f9530ef4 (patch)
tree4d20dfaf45c18d82b83d26e822d476711ab81bac /init-sh/level0.sh
parentf3eab9ee9a13b620d4d3eb27d72efd43e9158d21 (diff)
downloadmsec-ed13442ca9484b8001f062de5b2c4cc7f9530ef4.tar
msec-ed13442ca9484b8001f062de5b2c4cc7f9530ef4.tar.gz
msec-ed13442ca9484b8001f062de5b2c4cc7f9530ef4.tar.bz2
msec-ed13442ca9484b8001f062de5b2c4cc7f9530ef4.tar.xz
msec-ed13442ca9484b8001f062de5b2c4cc7f9530ef4.zip
*** empty log message ***
Diffstat (limited to 'init-sh/level0.sh')
-rwxr-xr-xinit-sh/level0.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/init-sh/level0.sh b/init-sh/level0.sh
index 62904ac..5f4d66b 100755
--- a/init-sh/level0.sh
+++ b/init-sh/level0.sh
@@ -55,10 +55,6 @@ echo -n "Running lilo to record new config : "
/sbin/lilo >& /dev/null
echo -e "done.\n"
-# /etc/inittab
-echo "Enabling direct console access : "
-AddRules "1:2345:respawn:/bin/bash --login" /etc/inittab
-
# /etc/profile
export SECURE_LEVEL=0
echo "Setting secure level variable to 0 :"
@@ -79,8 +75,12 @@ echo "Adding system users to specific groups :"
/etc/security/msec/init-sh/grpuser.sh --refresh
echo -e "done.\n"
-
-
-
+# Boot on a shell
+echo -n "Setting up inittab to spawn a shell without asking a passwd : "
+tmpfile=`mktemp /tmp/secure.XXXXXX`
+cp /etc/inittab ${tmpfile}
+cat ${tmpfile} | sed s'/\/sbin\/mingetty tty1/\/bin\/bash --login/' > /etc/inittab
+rm -f ${tmpfile}
+echo "done."