how to start tomcat service as administrator -
i had met problem.i want use "runtime.exec()" run cmd in web app while tomcat service doesn't start adminstrator , has no privilege run cmd. ,if there has way start service adminstrator auto not manual click tomcat.exe ?
there's 1 principle shall keep in mind: application can reach internet must always run minimal permissions possible. totally (always!) rules out run administrator. in case finds security issue in application, don't want provide them free administrator privileges on top.
even permission execute cmd
questionable have internet-reachable process. in hardened system rather task of server, running different privileges (again, not administrator) webserver (tomcat) connect to.
as quickfix might want provide cmd execution permissions user tomcat runs on. very-quick-fix might change tomcat service configuration - configure tomcat shall run service (and configure list of autostarting services) can specify user account runs under. i'm not giving exact instructions reasons given in first 2 paragraphs - wholeheartedly suggest change approach.
Comments
Post a Comment