aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh/level4.sh
diff options
context:
space:
mode:
Diffstat (limited to 'init-sh/level4.sh')
-rwxr-xr-xinit-sh/level4.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/init-sh/level4.sh b/init-sh/level4.sh
index 283817a..f8e00a1 100755
--- a/init-sh/level4.sh
+++ b/init-sh/level4.sh
@@ -47,6 +47,15 @@ AddRules "0 0-23 * * * root nice --adjustment=+19 /etc/security/msec/cron-
LiloUpdate;
/sbin/lilo
+# Server update
+AddRules "SECURE_LEVEL=4" /etc/profile
+export SECURE_LEVEL=4
+
+for service in `chkconfig --list | awk '{print $1}'`; do
+ chkconfig --del "${service}"
+ chkconfig --msec --add "${service}"
+done
+
# Permissions
AddRules "umask 022" /etc/profile