From 91249411c477fdb4c242026259a10a4f3f9c951a Mon Sep 17 00:00:00 2001 From: Yoann Vandoorselaere Date: Mon, 3 Jan 2000 10:43:24 +0000 Subject: *** empty log message *** --- init-sh/level5.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'init-sh/level5.sh') diff --git a/init-sh/level5.sh b/init-sh/level5.sh index f3752a6..03db3db 100755 --- a/init-sh/level5.sh +++ b/init-sh/level5.sh @@ -105,13 +105,16 @@ AddRules "PATH=\$PATH:/usr/X11R6/bin" /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 deny 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 -t3 -r now/ca::ctrlaltdel:\/sbin\/shutdown -a -t3 -r now/' > /etc/inittab rm -f ${tmpfile} echo "done." + echo echo "You are now running your system in security level 5," echo "All services are disabled : try the chkconfig to enable one..." -- cgit v1.2.1