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.
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
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rodrigo,
Thanks a lot for the instructions and quick response. This helps a lot.
Regards,
Anil
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.