Login sequence question

MidnightJava

Registered
I am running Tomcat web server, and it requires root privilege to setup conectors on low ports. I can do it interactively via sudo, but I'd like it to setup automatically on startup. I tried putting the Tomcat startup script file in .bash_login in an admin user home directory, but then it doesn't execute as root, and of course I don't want to put the admin password in the script.

I wonder if there's a file somewhere that executes as root on login, so I could put the startup file there. Anyone know if this is so, or some other way to do what I'm aiming for?
 
Back
Top