|Summary:||Service Manager autostart should check for administrative rights|
|Product:||Tomcat 5||Reporter:||Luci Sandor <lucisandor>|
|Component:||Native:Integration||Assignee:||Tomcat Developers Mailing List <dev>|
Description Luci Sandor 2005-01-27 04:02:03 UTC
I am running as a Power User and I can't start SM. It complains "Application System Error. Access is denied. Unable to open the Service Manager. [OK]" Service Manager is autostarting from "HKLM/Software/Microsoft/Windows/CurrentVersion/Run", wich means it will be started at each logon, for all the users. There are users who might not have the right to control services. The solutions as I see it is that tomcat5w.exe should graciously and silently exit if the user has no right to use it. PS. I have only this machine and I am not really sure that my error message isn't due to another causes. Those who know the source code might confirm or infirm if tomcat5w isn't already working as requested.
Comment 1 Dominik Drzewiecki 2005-01-27 10:25:12 UTC
I confirm. This also happens to me.
Comment 2 Yoav Shapira 2005-07-28 16:10:18 UTC
I agree with this patch and would like to do this, but I'm not sure how to check for admin privileges on startup for this service. If someone provides a patch, I'll be glad to apply and test it.
Comment 3 Mark Thomas 2006-08-30 03:08:40 UTC
Guessing at correct OS. Since this is an enhancement, marking it as such.
Comment 4 Mark Thomas 2011-06-23 14:15:56 UTC
Comment 5 Mladen Turk 2011-06-23 15:43:23 UTC
This is actually Tomcat installer problem. It should install the manager autostart for current user only. We cannot silently exit the manager because this would also cause the silent exit when the user logs in and clicks on the manager application manually.
Comment 6 Konstantin Kolinko 2011-06-23 18:06:07 UTC
Installing it for the current user feels wrong to me. What if there are several Admins? Anyway, as a first step, installing it could be made optional. Interested users can always copy its shortcut into their "Startup" menu folder. Would it be better to always install it as "Startup" menu shortcut, instead of using the "Run" branch in the registry?
Comment 7 Mark Thomas 2011-06-23 18:18:14 UTC
Comment 8 Mark Thomas 2011-06-23 18:28:25 UTC
Comment 9 Mark Thomas 2011-06-24 18:57:05 UTC
This has been proposed for back-port to 5.5.x and 6.0.x.
Comment 10 Mark Thomas 2011-08-22 15:55:43 UTC
This has been fixed in 6.0.x and 5.5.x. It is included in 6.0.33 onwards and will be included in 5.5.34 onwards.