aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh/level0.sh
diff options
context:
space:
mode:
authorYoann Vandoorselaere <yoann@mandriva.com>2000-01-03 10:43:24 +0000
committerYoann Vandoorselaere <yoann@mandriva.com>2000-01-03 10:43:24 +0000
commit91249411c477fdb4c242026259a10a4f3f9c951a (patch)
treea61dcaa5d72400bbb79958f462d0e05ee62709bf /init-sh/level0.sh
parent12ed6231a05ed93426287524aff8533bbbc6d367 (diff)
downloadmsec-91249411c477fdb4c242026259a10a4f3f9c951a.tar
msec-91249411c477fdb4c242026259a10a4f3f9c951a.tar.gz
msec-91249411c477fdb4c242026259a10a4f3f9c951a.tar.bz2
msec-91249411c477fdb4c242026259a10a4f3f9c951a.tar.xz
msec-91249411c477fdb4c242026259a10a4f3f9c951a.zip
*** empty log message ***
Diffstat (limited to 'init-sh/level0.sh')
-rwxr-xr-xinit-sh/level0.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/init-sh/level0.sh b/init-sh/level0.sh
index 1c1447f..6e0be37 100755
--- a/init-sh/level0.sh
+++ b/init-sh/level0.sh
@@ -77,11 +77,13 @@ 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 : "
+# Boot on a shell / authorize ctrl-alt-del
+echo -n "Setting up inittab to spawn a shell on boot & to authorize any user to issue ctrl-alt-del : "
tmpfile=`mktemp /tmp/secure.XXXXXX`
cp /etc/inittab ${tmpfile}
-cat ${tmpfile} | sed s'/\/sbin\/mingetty tty1/\/bin\/bash --login/' > /etc/inittab
+cat ${tmpfile} | \
+ sed s'/\/sbin\/mingetty tty1/\/bin\/bash --login/' | \
+ sed s'/ca::ctrlaltdel:\/sbin\/shutdown -a -t3 -r now/ca::ctrlaltdel:\/sbin\/shutdown -t3 -r now/' > /etc/inittab
rm -f ${tmpfile}
echo "done."