diff options
author | Yoann Vandoorselaere <yoann@mandriva.com> | 2000-01-03 10:43:24 +0000 |
---|---|---|
committer | Yoann Vandoorselaere <yoann@mandriva.com> | 2000-01-03 10:43:24 +0000 |
commit | 91249411c477fdb4c242026259a10a4f3f9c951a (patch) | |
tree | a61dcaa5d72400bbb79958f462d0e05ee62709bf /init-sh/level3.sh | |
parent | 12ed6231a05ed93426287524aff8533bbbc6d367 (diff) | |
download | msec-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/level3.sh')
-rwxr-xr-x | init-sh/level3.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/init-sh/level3.sh b/init-sh/level3.sh index b5d8ec0..20d5202 100755 --- a/init-sh/level3.sh +++ b/init-sh/level3.sh @@ -77,12 +77,15 @@ 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 : " +echo -n "Setting up inittab to authorize any user to issue ctrl-alt-del : " tmpfile=`mktemp /tmp/secure.XXXXXX` cp /etc/inittab ${tmpfile} -cat ${tmpfile} | sed s'/\/bin\/bash --login/\/sbin\/mingetty tty1/' > /etc/inittab +cat ${tmpfile} | \ + sed s'/\/bin\/bash --login/\/sbin\/mingetty tty1/' | \ + sed s'/ca::ctrlaltdel:\/sbin\/shutdown -a -t3 -r now/ca::ctrlaltdel:\/sbin\/shutdown -t3 -r now/' > /etc/inittab rm -f ${tmpfile} echo "done." + # Group were modified in lib.sh... grpconv |