aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh/level2.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/level2.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/level2.sh')
-rwxr-xr-xinit-sh/level2.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/init-sh/level2.sh b/init-sh/level2.sh
index 1760873..c663f25 100755
--- a/init-sh/level2.sh
+++ b/init-sh/level2.sh
@@ -55,10 +55,6 @@ echo -n "Running lilo to record new config : "
/sbin/lilo
echo -e "done.\n"
-# /etc/inittab
-echo "Disabling direct console access : "
-AddRules "1:2345:respawn:/sbin/mingetty tty1" /etc/inittab
-
# /etc/profile
export SECURE_LEVEL=2
echo "Setting secure level variable to 2 :"
@@ -79,3 +75,10 @@ echo "Adding system users to specifics groups :"
/etc/security/msec/init-sh/grpuser.sh --refresh
echo -e "done.\n"
+# 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."