aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh/level2.sh
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2001-08-09 08:10:59 +0000
committerFrederic Lepied <flepied@mandriva.com>2001-08-09 08:10:59 +0000
commit7c4523ed3de1cb0e5ea25d8e452c946232449ed4 (patch)
treea6c690d0e4382b47f92173d3f5821bf560951e6b /init-sh/level2.sh
parent2672f03b09c111a536856390cb5430b0fb4a6579 (diff)
downloadmsec-7c4523ed3de1cb0e5ea25d8e452c946232449ed4.tar
msec-7c4523ed3de1cb0e5ea25d8e452c946232449ed4.tar.gz
msec-7c4523ed3de1cb0e5ea25d8e452c946232449ed4.tar.bz2
msec-7c4523ed3de1cb0e5ea25d8e452c946232449ed4.tar.xz
msec-7c4523ed3de1cb0e5ea25d8e452c946232449ed4.zip
merge back 0.15-17mdk in CVS
Diffstat (limited to 'init-sh/level2.sh')
-rwxr-xr-xinit-sh/level2.sh17
1 files changed, 5 insertions, 12 deletions
diff --git a/init-sh/level2.sh b/init-sh/level2.sh
index eb2641a..3ffe407 100755
--- a/init-sh/level2.sh
+++ b/init-sh/level2.sh
@@ -73,8 +73,7 @@ AddRules "export PATH SECURE_LEVEL" /etc/zprofile
# Xserver
echo "Allowing users to connect X server from localhost :"
-AddBegRules "/usr/X11R6/bin/xhost + localhost" /etc/X11/xdm/Xsession
-AddBegRules "/usr/X11R6/bin/xhost + localhost" /etc/X11/xinit/xinitrc
+AddBegRules "/usr/X11R6/bin/xhost + localhost" /etc/X11/xinit.d/msec
# group
echo "Adding system users to specifics groups :"
@@ -82,14 +81,8 @@ echo "Adding system users to specifics groups :"
grpconv
echo -e "done.\n"
-# Do not boot on a shell
-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/' | \
- sed s'/ca::ctrlaltdel:\/sbin\/shutdown -a -t3 -r now/ca::ctrlaltdel:\/sbin\/shutdown -t3 -r now/' > /etc/inittab
-rm -f ${tmpfile}
-echo "done."
-
+AllowAutologin
+# Do not boot on a shell
+AllowReboot
+AllowUserList