diff options
author | Yoann Vandoorselaere <yoann@mandriva.com> | 1999-12-01 11:02:33 +0000 |
---|---|---|
committer | Yoann Vandoorselaere <yoann@mandriva.com> | 1999-12-01 11:02:33 +0000 |
commit | 49875dda625b1cf67d1ec25153e3eecfb5aed421 (patch) | |
tree | 397bf6de37589f8517467bbbf1b58555d0057bb8 /init-sh/level4.sh | |
parent | 6993d7456f2e542095deec62549d467e6e9a7057 (diff) | |
download | msec-49875dda625b1cf67d1ec25153e3eecfb5aed421.tar msec-49875dda625b1cf67d1ec25153e3eecfb5aed421.tar.gz msec-49875dda625b1cf67d1ec25153e3eecfb5aed421.tar.bz2 msec-49875dda625b1cf67d1ec25153e3eecfb5aed421.tar.xz msec-49875dda625b1cf67d1ec25153e3eecfb5aed421.zip |
Bug fix
Diffstat (limited to 'init-sh/level4.sh')
-rwxr-xr-x | init-sh/level4.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/init-sh/level4.sh b/init-sh/level4.sh index 421c5e0..f555a51 100755 --- a/init-sh/level4.sh +++ b/init-sh/level4.sh @@ -97,7 +97,8 @@ done echo -e "done.\n"; # /etc/profile -echo "Setting umask to 077 (user = rw) :" -AddRules "umask 077" /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" echo "Adding \"normal\" PATH variable :" -AddRules "PATH=\$PATH:/usr/X11R6/bin" /etc/profile +AddRules "PATH=\$PATH:/usr/X11R6/bin" /etc/profile quiet +AddRules "export PATH SECURE_LEVEL" /etc/profile
\ No newline at end of file |