Skip to content

Instantly share code, notes, and snippets.

@rkmax
Created February 17, 2014 00:42
Show Gist options
  • Select an option

  • Save rkmax/9042787 to your computer and use it in GitHub Desktop.

Select an option

Save rkmax/9042787 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
HTTP_USER=www-data
sudo setfacl -R -m $USER:rwx -m "${HTTP_USER}:rwx" $*
sudo setfacl -dR -m $USER:rwx -m "${HTTP_USER}:rwx" $*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment