Monday, August 5, 2013

error: unable to unlink old '' (Permission denied)

Today when I try to pull my updated files from github to local, I encounter this problem.
error: unable to unlink old 'templates/competitions.html' (Permission denied)
After a simple google search for the solution and easily found out that need to change file permission to -rw-rw-r--. However, it doesn't workout, and the error still the same. Do
ls -la
and notice at the top of the output, the permission still the old one. Change the folder's permission to -rw-rw-r-- by using
sudo chgrp www-data .
and problem fixed!

Disqus for blog