user1558297
user1558297

Reputation: 63

Gitosis clone error: Unable to read config file. Permission denied

I tried to clone a gitosis repository and got the error:

ERROR:gitosis.app:Unable to read config file: [Errno 13] Permission denied: '/sr v/gitosis/.gitosis.conf' fatal: The remote end hung up unexpectedly

The permission of gitosis.conf is set to 755. I also checked the folders and make sure that owner is gitosis. I cannot see anything wrong with permission. What could be the reason for this error?

Upvotes: 1

Views: 687

Answers (2)

Bill Z
Bill Z

Reputation: 1

"su - git" to git user and
cat the gitosis.conf file.
if you cannot see the content of the file. then you need to fix the ownership and permmisson of file or the path nodes along the path of the file.

Bill Z

Upvotes: 0

user1558297
user1558297

Reputation: 63

Thanks. Yes, the repositories directory is not owned by gitosis. Cloned successfully after updating it.

Upvotes: 1

Related Questions