Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

`hg push` : abort: could not lock repository ... Permission denied

Tags:

mercurial

I just set up several repositories on my Ubuntu server. I can pull from them just fine, but when I try:

hg push ssh://myserver//hg/repo

I get

abort: could not lock repository ... Permission denied
like image 939
Ethan Furman Avatar asked Jan 24 '14 20:01

Ethan Furman


1 Answers

This is a permissions issue. The name being used to authenticate must either be the owner of all the files, or be in a group that has write permission to all the files.

Alternatively, you could set the permissions to 777, but that last 7 is a really bad idea, as then anyone who is able to gain any kind of access to the server could play havoc with the repositories.

like image 119
Ethan Furman Avatar answered Sep 21 '22 03:09

Ethan Furman