aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh/level1.sh
diff options
context:
space:
mode:
Diffstat (limited to 'init-sh/level1.sh')
-rwxr-xr-xinit-sh/level1.sh15
1 files changed, 7 insertions, 8 deletions
diff --git a/init-sh/level1.sh b/init-sh/level1.sh
index 6c7b1da..74bb009 100755
--- a/init-sh/level1.sh
+++ b/init-sh/level1.sh
@@ -63,19 +63,18 @@ echo -e "\t- Security warning in syslog : no."
# /etc/profile
export SECURE_LEVEL=1
echo "Setting secure level variable to 1 :"
-AddRules "SECURE_LEVEL=1" /etc/profile.d/msec.sh
-AddRules "SECURE_LEVEL=1" /etc/profile
-AddRules "SECURE_LEVEL=1" /etc/zprofile
+AddRules "export SECURE_LEVEL=1" /etc/profile.d/msec.sh
+AddRules "setenv SECURE_LEVEL=1" /etc/profile.d/msec.csh
-echo "Setting umask to 002 (u=rw,g=rw,o=r) :"
-AddRules "umask 002" /etc/profile
-AddRules "umask 002" /etc/zprofile
+echo "Setting umask to 022 (u=rw,g=r,o=r) :"
+AddRules "umask 022" /etc/profile
+AddRules "umask 022" /etc/zprofile
echo "Adding \"non secure\" PATH variable :"
AddRules "PATH=\$PATH:/usr/X11R6/bin:/usr/games:." /etc/profile quiet
-AddRules "export PATH SECURE_LEVEL" /etc/profile
+AddRules "export PATH" /etc/profile
AddRules "PATH=\$PATH:/usr/X11R6/bin:/usr/games:." /etc/zprofile quiet
-AddRules "export PATH SECURE_LEVEL" /etc/zprofile
+AddRules "export PATH" /etc/zprofile
# Xserver
echo "Allowing users to connect X server from localhost :"