catalina.out not written to, permission issue
Bug #1861881 reported by
Moses Lecce
This bug affects 7 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tomcat9 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The file in /var/log/
If we change the permissions to allow syslog to write to the /var/log/tomcat9/ dir and the catalina.out file in there, it seems to get reverted back to tomcat:tomcat ownership (likely due to log rotation)
To post a comment you must log in.
In previous versions of tomcat (and ubuntu) we see the permissions to this directory as follows:
/var/log/tomcat7# ls -lah
drwxr-x--- 2 tomcat7 adm 156K Feb 4 00:00 .
drwxrwxr-x 22 root syslog 4.0K Feb 4 06:51 ..
-rw-r--r-- 1 tomcat7 adm 0 Feb 2 06:54 catalina.out
/var/log/tomcat8# ls -lah
drwxr-x--- 2 tomcat8 adm 4.0K Feb 4 06:25 .
drwxrwxr-x 16 root syslog 4.0K Feb 4 06:25 ..
-rw-r--r-- 1 tomcat8 adm 0 Feb 2 06:25 catalina.out
Where as currently with tomcat9 it has changed (the adm group is missing from the directory and from the catalina.out file)
ls -lah /var/log/tomcat9/
total 792K
drwxr-x--- 2 tomcat tomcat 4.0K Feb 4 14:28 .
drwxrwxr-x 15 root syslog 4.0K Feb 4 06:25 ..
-rw-rwxr-- 1 tomcat tomcat 0 Feb 2 06:25 catalina.out