Permission error of 'hg push'

Takenaka Kazuhiro takenaka.kazuhiro at oss.ntt.co.jp
Thu Jul 5 03:38:58 CDT 2007


Hi Alexis, Thanks for your useful advice.

After I had performed the following commands,
everythings got work OK.

# cd /var/www/cgi-hg
# chown -R apache:apache NewRep

> Thus spake Takenaka Kazuhiro:
>> > $ hg push
>> > pushing to http://172.20.152.50/hg/NewRep/
>> > searching for changes
>> > Permission denied: .hg/store/lock
>> > 
>> > How shall I take care of it ?
> 
> The files in the repository are owned by root (or whatever user created
> them).  The user running the cgi script, which is probably the same user
> running apache (e.g. www-data), doesn't have permission to change files
> in the repository (create the lock file in this case).
> 
> You just have to allow the user running the cgi script to change files
> in the repo.
> 
> Alexis
-- 
Takenaka Kazuhiro <takenaka.kazuhiro at oss.ntt.co.jp>


More information about the Mercurial mailing list