diff options
author | Jonas Smedegaard <dr@jones.dk> | 2005-01-05 01:30:33 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2005-01-05 01:30:33 +0000 |
commit | 77cdc6ce665ef607c414e5835f5e3bd15e48d3f6 (patch) | |
tree | 05f411e064c0506c9fc3a0ee4b613f2193721d75 /user-init | |
parent | cc196feddc42852f20ffdc49b41255ded6617070 (diff) |
Handle ~/private as writable only by user and readable only by user and group.
Diffstat (limited to 'user-init')
-rwxr-xr-x | user-init | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) |