Question

I have two users A and B in EC2 Linux Instance. A is in Group X, B is in Group Y. I start tomcat instance as User A. I own the tomcat instance directory as "chown -R A:Y tomcat/"

I started the tomcat as A User. How do I stop the tomcat as User B or restart as User B?

Was it helpful?

Solution

Since user B belongs to group Y, it is necessary to have execute permission of group Y on tomcat folder/bin/catalina.sh file. Please check if you have it. If not, you have to give it using chmod x5x on tomcat folder/bin/catalina.sh

OTHER TIPS

Use sudo to set up rules that allow user B to run certain things (specifically the stop and start scripts) as user A (possibly without supplying a password, even, if that is desired and considered secure enough).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top