How to Change the User starting Confluence with start-confluence.sh script
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
The <Confluence_Install>/bin/start-confluence.sh script uses a variable, CONF_USER which is set in <Confluence_Install>/bin/user.sh.
To change the user the script will use to run Confluence,
Edit <Confluence_Install>/bin/user.sh:
user.sh excerpt
1
2
3
4
# START INSTALLER MAGIC ! DO NOT EDIT !
CONF_USER="confluence" ##
# END INSTALLER MAGIC ! DO NOT EDIT !
export CONF_USER
2. Replace "confluence" with the user you would like to run Confluence.
3. When you start Confluence using start-confluence.sh the user you designated will be used.
Was this helpful?