I have a Stash user authenticating via AD who has write access to a project and is unable to push to a specific repository. He's able to push to repositories in other projects. SSH is setup correctly; cloning is fine, but pushing results in fatal: remote error: Insufficient permissions
You do not have permission to push to the repository retailpaymentservices in
project Fully Governed Enterprise Services
fatal: Could not read from remote repository.
Has the SSH key been added to the user's account (User Profile > SSH keys)? You can do a quick check by having the user do:
ssh -p <ssh-port> <ssh server> whoami
for instance
ssh -p 7999 stash.server.comwhoami
Thanks Michael, it has. difference being that we redirect 22 => 7999 via BigiP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, that eliminates one potential issue.
I've just checked the code paths and that error message is written when
So, I'd double check the permissions on the project in question and the user's group memberships to make sure it's all set up correctly.
From earlier answers it sounds like you've already double-checked this. Assuming everything is set up correctly and it's still not working, it might be a bug. Perhaps https://jira.atlassian.com/browse/CWD-3796?Do you have multiple User directories set up for Stash?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just one AD directory. I've given this user write access via group and as an individual user, with no success. Thanks again for your suggestions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Wow...I am chagrined. Please accept my apologies for wasting the community's time on this and set my karma points to -50. Turns out my remote developer was using someone elses SSH keys. (not kidding).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I expected it to be something trivial but this is still quite surprising. :D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Two ideas:
- Are the write permissions given to a group that the user should belong to, but actually does not? (You can check the group memberships if you open the user's details in Administration/Users on the web interface.)
- It is possible that some branch permissions setting prevents the user from pushing to the branch they were trying to push to. (Repo's page -> Settings/Branch permissions)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Balazs, thanks for your response. user does have group membership and there are no explicit repository, branch permissions or hooks that would prevent this push. probably something simple, but unable to solve it so far.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This project and its repositories are working fine for other users with write access. Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.