Skip to content

Instantly share code, notes, and snippets.

@aahung
Created March 18, 2016 11:26
Show Gist options
  • Save aahung/d5b969739856d556c049 to your computer and use it in GitHub Desktop.
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 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