curently in one of my repository has three people within it. problem is admin is the only person who can has write access for the repository. for other two users only have read access. but when they see the permission status for the repository , it show as write . when they pushing commits to the repository , they can see access key only has read permission error.
following permission were defined in repository by me. please help me to figure out this problem.
Hello @buddhika,
What is the repository URL users are pushing against? Perhaps they are pushing over SSH where the SSH key added in Bitbucket server was with Read-only access.
In the screenshot you have provided, please ask the user go to /d/project.security-management-system (master) in mingw-w64 or Git Bash and run:
git config -l
And check what is described in remote.origin.url
Thank you,
Rafael
HI @rsperafico,
following configurations were found once execute the git config -l command. but couldn't able to found a issue here. please help me to figure our this issue.
Thank You,
Best Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @buddhika,
Thank you for your update.
Based on screenshot provide we can notice your repository is hosted on https://bitbucket.org and not on Bitbucket server.
You could proceed as per following:
a. Connecting to the repository over HTTPS instead of SSH
# Change your remote's URL
# make sure of replacing USERNAME with desired user
git remote set-url origin https://USERNAME@@bitbucket.org/buddhikabhageashwara/security-management-system.git
b. Troubleshooting SSH connection
# enable Git DEBUG
export GIT_TRACE_PACKET=1
export GIT_TRACE=1
export GIT_CURL_VERBOSE=1
ssh -v bitbucket.org
Kind regards,
Rafael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bud
Can you post the error the users are seeing? From what you're describing it sounds like it may be the following error:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
If that is the error take a look at the Permission denied (publickey) knowledge base article for steps to fix the issue. If that is not the error or that does not help let us know and we'll go from there.
Cheers,
Branden
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @somethingblue,
thanks for the quick response, that is not the error what have you mentioned in here. please find the above mentioned error for the write access when oshan and bhanuka try to write on the repository .
please find the text format of the error message from follwoing which getting the users:-
$ git push origin masterrepository access denied. access via a deployment key is read-only.fatal: Could not read from remote repository.
Please make sure you have the correct access rightsand the repository exists.
thank you,
regards.
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.