Permission denied to access jira directory

Luke Liang July 21, 2017

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

2 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 21, 2017

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.

Try

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 F Behnke
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 21, 2017

What are the permissions set to?

Suggest an answer

Log in or Sign up to answer