Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bitbucket installed as root

Laura H November 8, 2019

I have a Bitbucket 5.x installation on RHEL7 that was installed by root, and so the process is running as root.  Because of this, elasticsearch will not run.  I tried changing ownership of both the Bitbucket installation and data directories and then restarting the process with the new account by putting the new account name in 'set-bitbucket-user.sh', but that did not work.  What is the correct way to change the Bitbucket ownership from root to another user?

1 answer

0 votes
Alexis Robert
Community Champion
November 8, 2019

Hi @Laura H , 

 

did you create a Bitbucket user too ? You would have to :

  1. create a user with "adduser bitbucket"
  2. change the directory ownership with "chown -R bitbucket:bitbucket bitbucket_home"
  3. modify the bitbucket-user.sh script with the user you create in step 1

This should be anough, let me know if it works

 

--Alexis

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events