summaryrefslogtreecommitdiff
path: root/etc/misc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-06-01 16:13:28 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-06-01 16:13:28 +0200
commitcc7e8323f229bc39196e6d05e56a2a00b7786628 (patch)
tree2aae1046026228422f4410328c0ee4e2f10a6a4d /etc/misc
parent2c4f7ce6805b36aa61be751dbbd49b9811267cf6 (diff)
misc: Set more permissive umask when root
Diffstat (limited to 'etc/misc')
-rw-r--r--etc/misc6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/misc b/etc/misc
index ecbed31..e115cd6 100644
--- a/etc/misc
+++ b/etc/misc
@@ -1,5 +1,9 @@
## vim:ft=zsh
# misc
mesg n
-umask 077
+if ((UID)) {
+ umask 077
+} else {
+ umask 002
+}
chpwd