Created
August 26, 2016 19:06
-
-
Save SamLau95/c3f3084b48cc05339856fc8e56ea11d3 to your computer and use it in GitHub Desktop.
fix_student_ownership.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /home | |
find . -maxdepth 2 -name data8assets -group root | |
names= | |
for name in ${names[@]}; do cd $name ; chown -R $name:$name data8assets ; cd .. ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment