This is another simple problem I'm stuck figuring out. I'm trying to compile a java program:
Code:
javac testMYSQL.java
error: error reading /srv/tomcat/bin/tomcat-juli.jar; /srv/tomcat/bin/tomcat-juli.jar (Permission denied)
1 error
The permissions on that file are:
Code:
ls -l /srv/tomcat/bin/tomcat-juli.jar
-rw-r-x--- 1 root tomcat 46861 Feb 21 2022 /srv/tomcat/bin/tomcat-juli.jar*
My user is cwauser. I have:
Code:
$ grep cwauser /etc/group
tomcat:x:200:cwauser
So, the tomcat-juli.jar file has group read permission for group tomcat, and user cwauser is a member of the tomcat group.
So why is the permission denied?