Re: [Dhis2-users] Fwd: Error when starting tomcat

2016-08-02 Thread Collins McAdoyo
Thanks Jason and Bob this was very helpful. On Thu, Jul 28, 2016 at 1:01 PM, gerald thomas wrote: > Noted!!! > Collins can you correct as advice for security reasons. > > On Jul 28, 2016 9:57 AM, "Bob Jolliffe" wrote: > >> The reason why it is a

Re: [Dhis2-users] Fwd: Error when starting tomcat

2016-07-28 Thread gerald thomas
Noted!!! Collins can you correct as advice for security reasons. On Jul 28, 2016 9:57 AM, "Bob Jolliffe" wrote: > The reason why it is a risk is that if the web application gets > compromised then it is possible that an attacker gets access to the > machine with the

Re: [Dhis2-users] Fwd: Error when starting tomcat

2016-07-28 Thread Bob Jolliffe
The reason why it is a risk is that if the web application gets compromised then it is possible that an attacker gets access to the machine with the privileges of the user running tomcat. If you scan back through the lists you will remember there was just such a problem in December 2013 where a

Re: [Dhis2-users] Fwd: Error when starting tomcat

2016-07-28 Thread gerald thomas
Dear Jason, Bob always tell me it is a security risk but I was trying to figure out Collins issue. Thanks again for the information. On Jul 28, 2016 9:13 AM, "Jason Pickering" wrote: > Hi Collins and Gerald, > > You should not execute "sudo ./startup.sh" as this

Re: [Dhis2-users] Fwd: Error when starting tomcat

2016-07-28 Thread Jason Pickering
Yes Gerald, its a very bad idea and should never be done. As I mentioned, the easy way to solve this is simply to change all of the permissions with "chown" to the non-privileged user which runs Tomcat. Its easy, and avoids the problem of running as root. Regards, Jason On Thu, Jul 28, 2016 at

Re: [Dhis2-users] Fwd: Error when starting tomcat

2016-07-28 Thread Jason Pickering
Hi Collins and Gerald, You should not execute "sudo ./startup.sh" as this means your Tomcat will run as the root user, which is generally a very bad idea. >From the error, it looks like the user which owns the Tomcat directory does not actually have access to the logs. So you should "chown" all

Re: [Dhis2-users] Fwd: Error when starting tomcat

2016-07-28 Thread gerald thomas
Dear Collins, Can you please use sudo ./startup.sh Please share your output On Jul 28, 2016 08:36, "Knut Staring" wrote: > Hi Collins, > > Please use this mailing list: "dhis2-users@lists.launchpad.net" > > It seems as though something has happened to the user you are using to

[Dhis2-users] Fwd: Error when starting tomcat

2016-07-28 Thread Knut Staring
Hi Collins, Please use this mailing list: "dhis2-users@lists.launchpad.net" It seems as though something has happened to the user you are using to run Tomcat. Make sure this Linux user has sufficient permissions. Knut -- Forwarded message -- From: Collins McAdoyo