From 77cdc6ce665ef607c414e5835f5e3bd15e48d3f6 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 5 Jan 2005 01:30:33 +0000 Subject: Handle ~/private as writable only by user and readable only by user and group. --- user-init | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'user-init') 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: /shares./// # : Either mac or win depending on which of netatalk and samba provides r/w access to the shares # : Group with write access to the share (usually the default group of the owner) -- cgit v1.2.3