# Настройка прав доступа для Git

**URL:** <https://linux.ru/forum/t/git/10419>\
**Category:** Программирование: \*nix\
**Created:** [14.Июнь.2016 17:31:55 UTC](https://linux.ru/forum/t/git/10419 "2016-06-14T17:31:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![trefeeevka](https://linux.ru/forum/letter_avatar_proxy/v4/letter/t/e47774/32.png) [@trefeeevka](https://linux.ru/forum/u/trefeeevka)\
**Post date:** [14.Июнь.2016 17:31:55 UTC](https://linux.ru/forum/t/git/10419/1 "2016-06-14T17:31:55Z")

</div>

Использовал инструкцию [https://habrahabr.ru/post/127213/](https://habrahabr.ru/post/127213/)  
для настройки депйломента на вебсервер,  
все ок, но при git push такая ошибка (remote: error: unable to unlink old ‘page/test.php’ (Permission denied))

```
Counting objects: 4, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (4/4), 392 bytes | 0 bytes/s, done.
Total 4 (delta 2), reused 0 (delta 0)
remote: 
remote: **** Вытягиваем изменения в Prime [Hub's post-update hook]
remote: 
remote: From /var/www/html/site
remote: * branch master -> FETCH_HEAD
remote: 2587bdd..2633fe9 master -> hub/master
remote: error: unable to unlink old 'page/test.php' (Permission denied)
remote: Updating 92a1d24..2633fe9
To ssh://site.com/var/www/html/site.git/
   92beeec..2633fe9 master -> master

```

Играюсь с правами уже несколько часов((( Не могу понять в чем ошибка
