Forums

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

Need clarification on running bitbucket as another user

Anil Kumar Patcha June 21, 2018

I have installed Bitbucket by using installer to install it as a service. It is installed successfully.

But, we need to run Bitbucket as different user other than default user (atlbitbucket) due to audit requirements. And it should start automatically when server reboot. For this, i have changed BITBUCKET_USER in the file "set-bitbucket-user.sh" under bin directory and then changed the permissions of Bitbucket installation directory and Bitbucket home directory accordingly. I am able to start Bitbucket as another user with the help of service.

Now, my question is, Is this process correct and will it cause any issues?

Appreciate your help.

1 answer

1 accepted

1 vote
Answer accepted
Rodrigo M
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 21, 2018

Hello Anil

The Running Bitbucket Server with a dedicated user page just states an example on how to create a dedicated user called atlbitbucket on Linux.
You just will need to ensure that the newly created user has read and write access to all of the <BITBUCKET_INSTALLATION and BITBUCKET_HOME directories. 

Regarding starting the service after a reboot, you can take a look at the Running Bitbucket Server as a Linux service document.

Regards
Rodrigo

Anil Kumar Patcha June 22, 2018

Thanks Rodrigo for the reply.

We need to install Bitbucket data center as service in Linux server with dedicated user "bitbucket" (not atlbitbucket) to start the service at system reboot. In the installation instructions of BitBucket data center page, recommended to install using installer. If we install it using installer as sudo, it will create atlbitbucket user and install it as service. But we need to start Bitbucket data center as user "bitbucket". How to proceed in this case?

Rodrigo M
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 22, 2018

Hey Anil

You can install Bitbucket using the installer as recommended on the Install Bitbucket Data Center. As you want to change the username created by the installation, you just need to create a new user on Linux, give it the proper permissions to the home/installation directories and set the new user as the owner of the installation/home directories.

In addition, you will need to modify the $BITBUCKET_INSTALL/bin/set-bitbucket-user.sh replacing the atlbitbucket to bitbucket user.

Cheers

Rodrigo

Anil Kumar Patcha June 25, 2018

Hi Rodrigo,

Thanks a lot for the instructions and quick response. This helps a lot.

Regards,

Anil

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events