]> arthur.barton.de Git - ax-zsh.git/commitdiff
20_home: Create local home directory with restricted permissions
authorAlexander Barton <alex@barton.de>
Sun, 6 Dec 2015 18:20:17 +0000 (19:20 +0100)
committerAlexander Barton <alex@barton.de>
Sun, 6 Dec 2015 18:21:36 +0000 (19:21 +0100)
core/20_home/20_home.zprofile

index c02172e09462638ea3c0a10de4d391e9a3ee9515..e4d19b172031ff2d6d1726a402df04f6914f0035 100644 (file)
@@ -2,7 +2,7 @@
 # 20_home.zprofile: Setup (local) home directory
 
 [[ -d "/usr/local/home" && ! -d "/usr/local/home/$LOGNAME" ]] \
-       && mkdir "/usr/local/home/$LOGNAME" >/dev/null 2>&1
+       && mkdir -m 700 "/usr/local/home/$LOGNAME" >/dev/null 2>&1
 
 [[ -w "/usr/local/home/$LOGNAME" ]] \
        && export LOCAL_HOME="/usr/local/home/$LOGNAME" \