简体   繁体   中英

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

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM