diff options
-rwxr-xr-x | user-init | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -185,19 +185,19 @@ for user in $USERS; do continue ;; esac - chmod a=rX "$thisdir" chown "$user": "$thisdir" + chmod a=rX "$thisdir" find "$thisdir" -mindepth 1 -maxdepth 1 -type d -print | (while read thisdir; do rogroup="`basename \"$thisdir\"`" + chown "$user":"$rogroup" "$thisdir" chmod ug=rX,o= "$thisdir" - chgrp "$rogroup" "$thisdir" find "$thisdir" -mindepth 1 -maxdepth 1 -type d -print | (while read thisdir; do rwgroup="`basename \"$thisdir\"`" - chgrp "$rwgroup" "$thisdir" + chown "$user":"$rwgroup" "$thisdir" chmod a=rX,g+s "$thisdir" find "$thisdir" -mindepth 1 -maxdepth 1 -type d -print | (while read thisdir; do sharename="`basename \"$thisdir\"`" - chgrp "$rwgroup" "$thisdir" + chown "$user":"$rwgroup" "$thisdir" chmod u=rw,go=r,a+X,g+s "$thisdir" ifs="$IFS" # Set default permissions |