#! /bin/bash # Special permissions for the shared music: # dirs : drwxr-s--- # files: -rw-r----- # Partly achieved by setting umask of subshell: umask 0027 bash # If these get out of hand on you # and it's necessary to repair a whole tree: # $ find TOP -type d -exec chmod 2750 {} \; # $ find TOP -type f -exec chmod 640 {} \;