Skip to content

Instantly share code, notes, and snippets.

@xlogerais
Created May 31, 2013 15:06
Show Gist options
  • Select an option

  • Save xlogerais/5685610 to your computer and use it in GitHub Desktop.

Select an option

Save xlogerais/5685610 to your computer and use it in GitHub Desktop.
# Install acl package
aptitude install acl
# Allow www-data user to cross repo
setfacl -m u:www-data:x /srv
setfacl -m u:www-data:x /srv/repositories
setfacl -m u:www-data:x /srv/repositories/git
# Recursively grant right to www-data user
setfacl -Rm u:www-data:rwx /srv/repositories/git
# Set default perm to ensure user www-data keep perms in repo dir
setfacl -Rm d:u:www-data:rwx /srv/repositories/git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment