Jump to content

tomcat webapps permission


ewong
Go to solution Solved by ewong,

Recommended Posts

  • Most Valued Members

Hi,

As I'm having some trouble with ESET PROTECT's webconsole, I downloaded a fresh era.war and copied it to the tomcat webapps directory, and removed the existing era directory.  Restarted tomcat; but now it's complaining it can't create the  /opt/tomcat/webapps/era directory.

This is the permission for tomcat:

# ls -la

Quote

drwxrwxr-x. 10 tomcat tomcat  4096 Nov  7 09:28 .
drwxr-xr-x.  4 root   root      30 Sep 15 08:28 ..
drwxr-x---.  2 tomcat tomcat  4096 Sep 15 09:19 bin
lrwxrwxrwx.  1 tomcat tomcat    11 Sep 15 09:39 conf -> /etc/tomcat
drwxr-x---.  2 tomcat tomcat  4096 Sep 19 15:38 lib
lrwxrwxrwx.  1 tomcat tomcat    16 Sep 15 09:48 logs -> /var/log/tomcat/
lrwxrwxrwx.  1 tomcat tomcat    23 Sep 15 09:37 temp -> /var/cache/tomcat/temp/
drwxr-xr-x.  2 tomcat tomcat    20 Nov  7 09:28 webapps
drwxrwxr-x.  2 tomcat tomcat    20 Nov  7 09:22 webappsbad
lrwxrwxrwx.  1 tomcat tomcat    23 Sep 15 09:36 work -> /var/cache/tomcat/work/

 

Are these permissions correct?

Thanks

Ed

Link to comment
Share on other sites

  • Most Valued Members
  • Solution

Found out it was SELinux.   setenforce 0 fixed it. 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...