#!/bin/sh USER=$(whoami) find -user $USER \! -group mobile-linux -exec chgrp mobile-linux \{\} \; find -user ph5 -type d \! -perm /0020 -exec chmod g+w \{\} \;