diff options
Diffstat (limited to 'init-sh/level0.sh')
-rwxr-xr-x | init-sh/level0.sh | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/init-sh/level0.sh b/init-sh/level0.sh index 05c8507..f3bd463 100755 --- a/init-sh/level0.sh +++ b/init-sh/level0.sh @@ -60,21 +60,28 @@ echo -e "\t- Security warning in syslog : no." AddRules "SYSLOG_WARN=no" /etc/security/msec/security.conf # end security check -# /etc/profile +# /etc/profile.d/msec.{sh,csh} export SECURE_LEVEL=0 echo "Setting secure level variable to 0 :" AddRules "export SECURE_LEVEL=0" /etc/profile.d/msec.sh AddRules "setenv SECURE_LEVEL 0" /etc/profile.d/msec.csh echo "Setting umask to 022 (u=rw,g=r,o=r) :" -AddRules "umask 022" /etc/profile -AddRules "umask 022" /etc/zprofile +AddRules "umask 022" /etc/profile.d/msec.sh +AddRules "umask 022" /etc/profile.d/msec.csh echo "Adding \"non secure\" PATH variable :" -AddRules "PATH=\$PATH:/usr/X11R6/bin:/usr/games:." /etc/profile quiet -AddRules "export PATH" /etc/profile -AddRules "PATH=\$PATH:/usr/X11R6/bin:/usr/games:." /etc/zprofile quiet -AddRules "export PATH" /etc/zprofile +if ! echo ${PATH} |grep -q /usr/X11R6/bin ; then + AddRules "export PATH=\$PATH:/usr/X11R6/bin" /etc/profile.d/msec.sh quiet + AddRules "setenv PATH \"\${PATH}:/usr/X11R6/bin\"" /etc/profile.d/msec.csh quiet +fi +if ! echo ${PATH} |grep -q /usr/games ; then + AddRules "export PATH=\$PATH:/usr/X11R6/bin:/usr/games:." /etc/profile.d/msec.sh quiet + AddRules "setenv PATH \"\${PATH}:/usr/games\"" /etc/profile.d/msec.csh quiet +fi + +AddRules "export PATH=\$PATH:." /etc/profile.d/msec.sh quiet +AddRules "setenv PATH \"\${PATH}:.\"" /etc/profile.d/msec.csh quiet # Xserver echo "Allowing users to connect X server from everywhere :" |