summaryrefslogtreecommitdiff
path: root/user-init
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2005-01-05 01:30:33 +0000
committerJonas Smedegaard <dr@jones.dk>2005-01-05 01:30:33 +0000
commit77cdc6ce665ef607c414e5835f5e3bd15e48d3f6 (patch)
tree05f411e064c0506c9fc3a0ee4b613f2193721d75 /user-init
parentcc196feddc42852f20ffdc49b41255ded6617070 (diff)
Handle ~/private as writable only by user and readable only by user and group.
Diffstat (limited to 'user-init')
-rwxr-xr-xuser-init6
1 files changed, 6 insertions, 0 deletions
diff --git a/user-init b/user-init
index 4888115..38ec924 100755
--- a/user-init
+++ b/user-init
@@ -221,6 +221,12 @@ for user in $USERS; do
fi
fi
+ # Private dir permissions
+ if [ -d "$HOME/private" ]; then
+ chown -R "$user": "$HOME/private"
+ chmod -R u+rX,g=r,g+X,o= "$HOME/private"
+ fi
+
# Fileshares: <home>/shares.<sharetype>/<rogroup>/<rwgroup>/<sharename>
# <sharetype>: Either mac or win depending on which of netatalk and samba provides r/w access to the shares
# <rwgroup>: Group with write access to the share (usually the default group of the owner)