From 0c399d9c8e8449bb2d34402ecffc8601fc17d699 Mon Sep 17 00:00:00 2001 From: Florin Grad Date: Thu, 20 Sep 2001 15:35:51 +0000 Subject: remove the /etc/profile entries and use /etc/profile.d/msec*sh|csh instead --- init-sh/lib.sh | 51 ++++----------------------------------------------- 1 file changed, 4 insertions(+), 47 deletions(-) (limited to 'init-sh/lib.sh') diff --git a/init-sh/lib.sh b/init-sh/lib.sh index c929ed6..499a3fa 100644 --- a/init-sh/lib.sh +++ b/init-sh/lib.sh @@ -328,8 +328,6 @@ CleanRules /etc/securetty CommentUserRules /etc/securetty CleanRules /etc/security/msec/security.conf CommentUserRules /etc/security/msec/security.conf -CleanRules /etc/profile -CleanRules /etc/zprofile CleanRules /etc/ld.so.preload CleanLoaderRules @@ -348,14 +346,16 @@ else fi -if [[ -f /etc/profile.d/msec.sh ]]; then +if [[ -f /etc/profile.d/msec.sh && -f /etc/profile.d/msec.csh ]]; then CleanRules /etc/profile.d/msec.sh + CleanRules /etc/profile.d/msec.csh else touch /etc/profile.d/msec.sh + touch /etc/profile.d/msec.csh chmod 755 /etc/profile.d/msec.sh + chmod 755 /etc/profile.d/msec.csh fi - echo -e "\nStarting to reconfigure the system : " # For all secure level echo "Setting spoofing protection : " @@ -373,46 +373,3 @@ usermod -G xgrp xfs /usr/share/msec/grpuser.sh --clean echo - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- cgit v1.2.1