diff options
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 |