Created
March 18, 2016 11:26
-
-
Save aahung/d5b969739856d556c049 to your computer and use it in GitHub Desktop.
create public_html/report under each user and assign the right permissions
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
# this should be ran in the /home directory | |
# create "public_html/report" folder under their home dir if not exists | |
for u in *; | |
do mkdir -p "$u""/public_html"; | |
mkdir -p "$u""/public_html/report"; | |
chown -R $u:combo "$u""/public_html"; | |
chmod -R u+wrx,go+rx "$u""/public_html"; | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment