From 9ba269684aad61574444a6ef76f37330a9e04b60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Wirion?= Date: Wed, 3 Jul 2013 08:35:28 +0000 Subject: [PATCH] Fix umask comments --- .bashrc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.bashrc b/.bashrc index 9b806c272..7e18013df 100644 --- a/.bashrc +++ b/.bashrc @@ -46,13 +46,13 @@ # The following incantation allows easy group modification of files. # See here: http://en.wikipedia.org/wiki/Umask # -# umask 002 allows only you to write (but the group to read) any new +# umask 022 allows only you to write (but the group to read) any new # files that you create. # -# umask 022 allows both you and the group to write to any new files +# umask 002 allows both you and the group to write to any new files # which you make. # -# In general we want umask 022 on the server and umask 002 on local +# In general we want umask 002 on the server and umask 022 on local # machines. # # The command 'id' gives the info we need to distinguish these cases. @@ -63,11 +63,11 @@ # # So: if the group name is the same as the username OR the user id is not # greater than 99 (i.e. not root or a privileged user), then we are on a -# local machine (check for yourself), so we set umask 002. +# local machine (check for yourself), so we set umask 022. # # Conversely, if the default group name is *different* from the username # AND the user id is greater than 99, we're on the server, and set umask -# 022 for easy collaborative editing. +# 002 for easy collaborative editing. if [ "`id -gn`" == "`id -un`" -a `id -u` -gt 99 ]; then umask 002 else