aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh/level3.sh
diff options
context:
space:
mode:
authorYoann Vandoorselaere <yoann@mandriva.com>2001-09-19 12:32:18 +0000
committerYoann Vandoorselaere <yoann@mandriva.com>2001-09-19 12:32:18 +0000
commit7ed5f259034dd1ccb0464d2b4a331661703354de (patch)
treec07d002bbaf3ee7deea638e246056b408b0a351f /init-sh/level3.sh
parent97c6fa2c93ba25de834af9844c099f85ad0868ff (diff)
downloadmsec-7ed5f259034dd1ccb0464d2b4a331661703354de.tar
msec-7ed5f259034dd1ccb0464d2b4a331661703354de.tar.gz
msec-7ed5f259034dd1ccb0464d2b4a331661703354de.tar.bz2
msec-7ed5f259034dd1ccb0464d2b4a331661703354de.tar.xz
msec-7ed5f259034dd1ccb0464d2b4a331661703354de.zip
- Output in /etc/profile.d/msec.sh as only .sh extenssion files are read.V0_15_26mdk
- Keep the output of the SECURE_LEVEL in /etc/profile and /etc/zprofile.
Diffstat (limited to 'init-sh/level3.sh')
-rwxr-xr-xinit-sh/level3.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/init-sh/level3.sh b/init-sh/level3.sh
index 34ed29a..d5c98ae 100755
--- a/init-sh/level3.sh
+++ b/init-sh/level3.sh
@@ -71,7 +71,9 @@ AddRules "0 4 * * * root /usr/share/msec/security.sh" /etc/crontab
# /etc/profile
export SECURE_LEVEL=3
echo "Setting secure level variable to 3 :"
-AddRules "SECURE_LEVEL=3" /etc/profile.d/msec
+AddRules "SECURE_LEVEL=3" /etc/profile.d/msec.sh
+AddRules "SECURE_LEVEL=3" /etc/profile
+AddRules "SECURE_LEVEL=3" /etc/zprofile
echo "Setting umask to 022 (u=rw,g=r,o=r) :"
AddRules "umask 022" /etc/profile
@@ -79,9 +81,9 @@ AddRules "umask 022" /etc/zprofile
echo "Adding a \"normal\" PATH variable : "
AddRules "PATH=\$PATH:/usr/X11R6/bin:/usr/games" /etc/profile quiet
-AddRules "export PATH" /etc/profile
+AddRules "export PATH SECURE_LEVEL" /etc/profile
AddRules "PATH=\$PATH:/usr/X11R6/bin:/usr/games" /etc/zprofile quiet
-AddRules "export PATH" /etc/zprofile
+AddRules "export PATH SECURE_LEVEL" /etc/zprofile
# Do not boot on a shell
AllowReboot