Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

On a Ubuntu Server 10.10 box, I seem to require root access to use git pull (in my /var/www directory). error: cannot open .git/FETCH_HEAD: Permission denied.

I have tried chmodding 0777 /var/www and /var/www/.git, and chowning both of these to my account, to no avail.

share|improve this question

2 Answers 2

The error message is not about /var/www or /var/www/.git. It is about /var/www/.git/FETCH_HEAD, which you need write permissions on.

share|improve this answer

You'll probably need permissions on the whole directory and all the files to be able to pull.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.