To stop/start JIRA in Linux environment, which Linux user should be used ? Is it user "jira" or user "root". Starting/stopping jira as "root" user cause any kind of issues ?

Please advise. Thanks

4 answers

1 accepted

Since Jira 6, the startup process has been improved. If you installed Jira as root using the install wizard, it should have created a new "jira" user for you, as well as set up Jira as a service which will run automatically on startup. If you run /etc/init.d/jira {stop|start} as root, the script will drop itself to run as the "jira" user before starting the application.

It looks like 5.2 also creates a jira user, if the installer was run as root:
https://confluence.atlassian.com/display/JIRA052/Installing+JIRA+on+Linux
(see note at the end of step 1)

If you're unsure, you can run the start-jira.sh and stop-jira.sh scripts as the jira user, to be safe. These are in the bin directory of your Jira installation.

Step 4 of the above link also has instructions for setting up Jira to run as a service, if you didn't run the installer as root.

Hi.

do you have the init script installed?

if i am not totally wrong then the user jira is set inside there...

so this is the reason you can start jira using "/etc/init.d/jira start" as root user and the process owner will be user "jira"

as renjith already stated it is not recommended to run any service as root user. stick with the one your installer created for you and it should be fine.

jira version which we are using : 5.2.7

Shravana,

Running JIRA under root user is never recommeded. It is always safe to run JIRA under the limited user 'jira' which is taken care automatically, as Andrew says, if the installer was used.

Renjith,

Even if start jira as root user in Linux. The owner of the process remains "jira". How does it cause issue ? Details below. Sorry, I am trying to understand.

ps -eaf | grep -i jira

jira 11786 1 4 Jul12 ? 12:25:08 /opt/atlassian/jira/jre//bin/java -Djava.util.logging.config.file=/opt/atlassian/jira/conf/logging.properties -XX:MaxPermSize=256m -Xms768m -Xmx4096m -Djava.awt.headless=true -Datlassian.standalone=JIRA -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dmail.mime.decodeparameters=true -XX:+PrintGCDateStamps -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/opt/atlassian/jira/endorsed -classpath /opt/atlassian/jira/bin/bootstrap.jar:/opt/atlassian/jira/bin/tomcat-juli.jar -Dcatalina.base=/opt/atlassian/jira -Dcatalina.home=/opt/atlassian/jira -Djava.io.tmpdir=/opt/atlassian/jira/temp org.apache.catalina.startup.Bootstrap start

Thanks

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Wednesday in Jira

Join our webinar: How 1B+ feature flag events helped us build the new Jira

Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...

107 views 0 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you