Permission denied to access jira directory

My JIRA was installed on Ubuntu Server 16.04. I used the terminal to access the log files located at /var/atlassian/application-data/jira/log/atlassian-jira.log. I used sudo account and was able to change the directory to /var/atlassian/application-data/, but when I wanted to go further to /var/atlassian/application-data/jira directory with sudo account, I got: Permission denied. I am not allowed to get my log files. What is preventing sudo from access jira directory?

2 answers

1 votes

Your account does not have permission to use the directory.

sudo <command> only takes root priviliges while it runs and drops access when the command finishes, so "sudo cd  <directory>" will work in that it changes directory, but when it finishes, your normal account is dropped back to where it was before because it has no rights to be in there.


sudo ls -l /var/atlassian/application-data/jira

sudo ls -l /var/atlassian/application-data/jira/log

suco cat /var/atlassian/application-data/jira/log/atlassian-jira.log

0 votes
Steven Behnke Community Champion Jul 21, 2017

What are the permissions set to?

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

937 views 5 18
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot