Java and Tomcat questions (simple stuff)

Inevitability

Expert Member
Joined
Jul 10, 2007
Messages
1,673
hi
i have some basic questions...

1) Can a non-super-user install Java on solaris? (the installation istructions fro the JDK say you need to be superuser)
2) Can a non-super-user install tomcat on solaris?
3) will a non-super-user be able to start/stop tomcat, or can it only be done by superuser?

thanks!
 

grayston

Expert Member
Joined
Jul 24, 2007
Messages
3,733
hi
i have some basic questions...

1) Can a non-super-user install Java on solaris? (the installation istructions fro the JDK say you need to be superuser)

Well, there's your answer...

You might be able to get away with installing stuff as a normal user, but there will be so many pitfalls along the way and you are so likely to end up with an unusable installation, that it hardly makes any sense to try. Why do you need to do this?
 

Inevitability

Expert Member
Joined
Jul 10, 2007
Messages
1,673
i want to be able to have control of the tomcat environment, but the server that i'm gonna install it on is under the "control" of our Ops Support team. i.e. they handle backups/montiring etc.
which means they own the root user.


ok, so if Java needs to installed by the super-user, then ok... that's once off.
what about tomcat?
and will i then be able to stop/start it from a normal user account?
 
Last edited:

grayston

Expert Member
Joined
Jul 24, 2007
Messages
3,733
i want to be able to have control of the tomcat environment, but the server that i'm gonna install it on is under the "control" of our Ops Support team. i.e. they handle backups/montiring etc.
which means they own the root user.


ok, so if Java needs to installed by the super-user, then ok... that's once off.
what about tomcat?
and will i then be able to stop/start it from a normal user account?

Yees... ish. I think the best thing would be to create a 'tomcat' user and group, chown the tomcat install directory to 'tomcat:tomcat' and then run the Tomcat scripts as the tomcat user.

Bit out of date but there's some extra info here: http://linux-sxs.org/internet_serving/c140.html
 

wishblade

Senior Member
Joined
Jan 14, 2009
Messages
635
The tomcat user, if I remember correctly, is required to own the Tomcat config folder as well as one or two others (may be mistaken here on the exact folder but there definately is one or two folders that it needs to own). So then as grayston mentioned, manage Tomcat as the tomcat user...
 
Top