aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh/level4.sh
diff options
context:
space:
mode:
authorYoann Vandoorselaere <yoann@mandriva.com>1999-12-01 11:39:58 +0000
committerYoann Vandoorselaere <yoann@mandriva.com>1999-12-01 11:39:58 +0000
commit3e51d5bb01c84dff7fe1b114c2f1e281bdf2219d (patch)
treeacbcb16ee5923073dc64a9353a616f7debe1505c /init-sh/level4.sh
parent6b9df4eac57b3b7118aa3f680913f623e8cedfe1 (diff)
downloadmsec-3e51d5bb01c84dff7fe1b114c2f1e281bdf2219d.tar
msec-3e51d5bb01c84dff7fe1b114c2f1e281bdf2219d.tar.gz
msec-3e51d5bb01c84dff7fe1b114c2f1e281bdf2219d.tar.bz2
msec-3e51d5bb01c84dff7fe1b114c2f1e281bdf2219d.tar.xz
msec-3e51d5bb01c84dff7fe1b114c2f1e281bdf2219d.zip
Now preserve file indentation
Diffstat (limited to 'init-sh/level4.sh')
-rwxr-xr-xinit-sh/level4.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/init-sh/level4.sh b/init-sh/level4.sh
index a762c2d..bc18c5f 100755
--- a/init-sh/level4.sh
+++ b/init-sh/level4.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash
#
@@ -80,6 +80,8 @@ echo "Setting secure level variable to 4 :"
AddRules "SECURE_LEVEL=4" /etc/profile
export SECURE_LEVEL=4
+IFS="
+"
echo -n "Disabling all service, except : {"
for service in `chkconfig --list | awk '{print $1}'`; do
if grep -qx ${service} /etc/security/msec/init-sh/server.4; then
@@ -98,7 +100,8 @@ echo -e "done.\n";
# /etc/profile
echo "Setting umask to 022 (u=rw,g=rx) for root, 077 (u=rw) for user :"
-AddRules "if [ ${UID} == 0 ]; then umask 022; else umask 077; fi" /etc/profile
+AddRules "if [ \${UID} == 0 ]; then umask 022; else umask 077; fi" /etc/profile
echo "Adding \"normal\" PATH variable :"
AddRules "PATH=\$PATH:/usr/X11R6/bin" /etc/profile quiet
-AddRules "export PATH SECURE_LEVEL" /etc/profile \ No newline at end of file
+AddRules "export PATH SECURE_LEVEL" /etc/profile
+