From 3e51d5bb01c84dff7fe1b114c2f1e281bdf2219d Mon Sep 17 00:00:00 2001 From: Yoann Vandoorselaere Date: Wed, 1 Dec 1999 11:39:58 +0000 Subject: Now preserve file indentation --- init-sh/level4.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'init-sh/level4.sh') 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 + -- cgit v1.2.1