summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Robbins <drobbins@gentoo.org>2001-05-14 19:35:42 +0000
committerDaniel Robbins <drobbins@gentoo.org>2001-05-14 19:35:42 +0000
commit523d2f8d949404a532c27f788f7bc66aeb5b3cee (patch)
treed1b9a66c59a3814f1c683e824bc39b20b23a0b96 /sys-apps
parentimportant umask fix (diff)
downloadhistorical-523d2f8d949404a532c27f788f7bc66aeb5b3cee.tar.gz
historical-523d2f8d949404a532c27f788f7bc66aeb5b3cee.tar.bz2
historical-523d2f8d949404a532c27f788f7bc66aeb5b3cee.zip
umask fix
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/baselayout/files/profile3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys-apps/baselayout/files/profile b/sys-apps/baselayout/files/profile
index eed28bdd9b33..53b258daa03f 100644
--- a/sys-apps/baselayout/files/profile
+++ b/sys-apps/baselayout/files/profile
@@ -12,7 +12,8 @@ fi
if [ `/usr/bin/whoami` == 'root' ] ; then
export PS1='\[\033[01;31;40m\]\h \[\033[01;34;40m\]\W > \[\033[00m\]'
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:${ROOTPATH}
- umask 077
+ #077 would be more secure, but 022 is generally quite realistic
+ umask 022
else
export PS1='\[\033[01;32;40m\]\u@\h \[\033[01;34;40m\]\W > \[\033[00m\]'
export PATH=/bin:/usr/bin:${PATH}