diff options
author | Florin Grad <florin@mandriva.com> | 2001-11-29 13:30:25 +0000 |
---|---|---|
committer | Florin Grad <florin@mandriva.com> | 2001-11-29 13:30:25 +0000 |
commit | 8cfb28249d9e7640d81d3051a07b19fbf297d68a (patch) | |
tree | 7c6e033e569600dfb448bd7bc67cdab1b4def8dd /init-sh | |
parent | 2e9dceba3bffa3c95a59ef9f3bb4623a51c559f5 (diff) | |
download | msec-8cfb28249d9e7640d81d3051a07b19fbf297d68a.tar msec-8cfb28249d9e7640d81d3051a07b19fbf297d68a.tar.gz msec-8cfb28249d9e7640d81d3051a07b19fbf297d68a.tar.bz2 msec-8cfb28249d9e7640d81d3051a07b19fbf297d68a.tar.xz msec-8cfb28249d9e7640d81d3051a07b19fbf297d68a.zip |
add the sysconfig/msec support
Diffstat (limited to 'init-sh')
-rwxr-xr-x | init-sh/custom.sh | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/init-sh/custom.sh b/init-sh/custom.sh index 2b7df6c..29b44b9 100755 --- a/init-sh/custom.sh +++ b/init-sh/custom.sh @@ -234,11 +234,9 @@ if [[ ${answer} == yes ]]; then # /etc/profile.d/msec.{sh,csh} export SECURE_LEVEL=4 echo "Setting secure level variable to 4 :" - AddRules "export SECURE_LEVEL=4" /etc/profile.d/msec.sh - AddRules "setenv SECURE_LEVEL 4" /etc/profile.d/msec.csh + AddRules "SECURE_LEVEL=4" /etc/sysconfig/msec else - AddRules "export SECURE_LEVEL=3" /etc/profile.d/msec.sh - AddRules "setenv SECURE_LEVEL 3" /etc/profile.d/msec.csh + AddRules "SECURE_LEVEL=3" /etc/sysconfig/msec fi ### @@ -256,22 +254,23 @@ done case "${answer}" in "easy") echo "Setting umask to 022 (u=rw,g=r,o=r) :" - AddRules "umask 022" /etc/profile.d/msec.sh - AddRules "umask 022" /etc/profile.d/msec.csh + AddRules "UMASK_ROOT=022" /etc/sysconfig/msec + AddRules "UMASK_USER=022" /etc/sysconfig/msec ;; "normal") echo "Setting umask to 022 (u=rw,g=r,o=r) :" - AddRules "umask 022" /etc/profile.d/msec.sh - AddRules "umask 022" /etc/profile.d/msec.csh + AddRules "UMASK_ROOT=022" /etc/sysconfig/msec + AddRules "UMASK_USER=022" /etc/sysconfig/msec ;; "restricted") - AddRules "if [[ \${UID} == 0 ]]; then umask 022; else umask 077; fi" /etc/profile.d/msec.sh - AddRules "if [[ \${UID} == 0 ]]; then umask 022; else umask 077; fi" /etc/profile.d/msec.csh + echo "Setting umask to 022 (u=rw,g=rx) for root, 077 (u=rw) for user :" + AddRules "UMASK_ROOT=022" /etc/sysconfig/msec + AddRules "UMASK_USER=077" /etc/sysconfig/msec ;; "paranoid") - AddRules "umask 077" /etc/profile.d/msec.sh - AddRules "umask 077" /etc/profile.d/msec.csh + AddRules "UMASK_ROOT=077" /etc/sysconfig/msec + AddRules "UMASK_USER=077" /etc/sysconfig/msec ;; esac |