I need to be able to start/stop the JSW Windows NT
service as a non-administrator user. However, as it
seems tricky to change the security descriptor of a
particular service, I preferred to investigate the access
rights asked when invoking the OpenSCManager and
OpenService methods in source file src/c/wrapper_win.c.
Thus I lowered drastically these access rights in both
start and stop methods, tested it and it works fine.
That's why I submit this minor update:
- SC_MANAGER_ALL_ACCESS changed to
- SERVICE_ALL_ACCESS changed to
SERVICE_QUERY_STATUS + SERVICE_START or
Hope it will help.