---
title: 'Setting ACL on webfolders when using GIT or SVN'
url: 'https://maxwesten.nl/blog/articles/setting-acl-on-webfolders-when-using-git-or-svn'
markdown: 'https://maxwesten.nl/blog/articles/setting-acl-on-webfolders-when-using-git-or-svn.md'
date: '2012-08-27'
description: 'When using a VCS(Version Control System) like SVN or GIT to deploy files to your webserver you are generally faced with some troubles with permissions. If the website/webapplication needs permissions to write files in folders, you cannot easy chown these folders like: sudo chown -R www-data:www-data content When setting rights this way, the webapplication w'
taxonomy:
  category:
    - OSX
  tag:
    - Terminal
    - OSX
    - ACL
  archives_month:
    - aug_2012
  archives_year:
    - '2012'
---

# Setting ACL on webfolders when using GIT or SVN

[Home](https://maxwesten.nl/)  [Blog](https://maxwesten.nl/blog)  [Articles](https://maxwesten.nl/blog/articles)  Setting ACL on webfolders when using GIT or SVN 

## [ Setting ACL on webfolders when using GIT or SVN](https://maxwesten.nl/blog/articles/setting-acl-on-webfolders-when-using-git-or-svn)

    27th Aug 2012   [Terminal](https://maxwesten.nl/tag:Terminal#body-wrapper) [OSX](https://maxwesten.nl/tag:OSX#body-wrapper) [ACL](https://maxwesten.nl/tag:ACL#body-wrapper)  

When using a VCS(Version Control System) like SVN or GIT to deploy files to your webserver you are generally faced with some troubles with permissions.

If the website/webapplication needs permissions to write files in folders, you cannot easy chown these folders like:

```
sudo chown -R www-data:www-data content

```

When setting rights this way, the webapplication works like a charm, but updating with GIT or SVN give problems, because the user executing the update isn't www-data.

A solution to this problem is to use ACL.

To [install ACL on ubuntu](https://help.ubuntu.com/community/FilePermissionsACLs)

Then add the rwx right to the current running user and www-data on the folders **content** and **config/user**

```
sudo setfacl -R -m u:www-data:rwx -m u:`whoami`:rwx content config/user
sudo setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx content config/user

```

 [ Previous Article](https://maxwesten.nl/blog/articles/statamic-add-ons) [Next Article ](https://maxwesten.nl/blog/articles/easiest-local-development-environment-on-osx)

#### Related Posts

- 100 

     [Themed Tab Terminal for OSX Leopard](https://maxwesten.nl/blog/articles/themed-osx-terminal "Themed Tab Terminal for OSX Leopard")
- 80 

     [Setting up MockSMTP on OSX 10.7(Lion) for local PHP development](https://maxwesten.nl/blog/articles/setting-up-mocksmtp-on-osx-10-7lion-for-local-php-development "Setting up MockSMTP on OSX 10.7(Lion) for local PHP development")
- 80 

     [Installing PHP 5.2.8 on OSX Leopard 10.5.6](https://maxwesten.nl/blog/articles/installing-php-on-osx-leopard "Installing PHP 5.2.8 on OSX Leopard 10.5.6")
- 75 

     [Easiest local development environment on OSX](https://maxwesten.nl/blog/articles/easiest-local-development-environment-on-osx "Easiest local development environment on OSX")
- 75 

     [CakePHP on OSX: Problem using Bake.php script](https://maxwesten.nl/blog/articles/cakephp-on-osx-problem-using-bakephp-script "CakePHP on OSX: Problem using Bake.php script")

[←](https://xn--sr8hvo.ws/%F0%9F%92%95%F0%9F%8E%89%E2%A4%B5%EF%B8%8F/previous)An IndieWeb Webring 🕸💍 [→](https://xn--sr8hvo.ws/%F0%9F%92%95%F0%9F%8E%89%E2%A4%B5%EF%B8%8F/next)

---

## Navigation

- Parent: [Articles](https://maxwesten.nl/blog/articles.md)
- Previous: [Easiest local development environment on OSX](https://maxwesten.nl/blog/articles/easiest-local-development-environment-on-osx.md)
- Next: [Statamic Dynamic sitemap Add-on and more](https://maxwesten.nl/blog/articles/statamic-add-ons.md)
