Dragon_Krome
asked on
Windows XP Service permissions
Hello everybody,
Please consider the following scenario:
Got Process Explorer from http://www.sysinternals.com/Utilities/ProcessExplorer.html and with its "help" I managed to change the permissions for a service, like this:
Locate the process (avguard.exe in my case) as a child of services.exe, right click it, properties, services tab, permissions. On the permission window it popped up, i've removed all permissions for the Administrators group by checking all Deny boxes and as a consequence, the permissions button under the services tab has been disabled and i'm unable to reset the permissions. Re-installing the product yields messages like "cannot install service", even if everything has been previously removed.
The questions are:
- Is there another way of getting to that dialog where you can set permissions for a service, besides using process explorer?
- How can I reset the permissions, considering that the problem persist even after reinstalling the product?
Thanks in advance
PS: I've used Winspector to enable the Permissions button and the error message is "Cannot open service"
PPS: Please, no guessing. I don't have the time to "try rebooting, try reinstalling". Thanks.
Please consider the following scenario:
Got Process Explorer from http://www.sysinternals.com/Utilities/ProcessExplorer.html and with its "help" I managed to change the permissions for a service, like this:
Locate the process (avguard.exe in my case) as a child of services.exe, right click it, properties, services tab, permissions. On the permission window it popped up, i've removed all permissions for the Administrators group by checking all Deny boxes and as a consequence, the permissions button under the services tab has been disabled and i'm unable to reset the permissions. Re-installing the product yields messages like "cannot install service", even if everything has been previously removed.
The questions are:
- Is there another way of getting to that dialog where you can set permissions for a service, besides using process explorer?
- How can I reset the permissions, considering that the problem persist even after reinstalling the product?
Thanks in advance
PS: I've used Winspector to enable the Permissions button and the error message is "Cannot open service"
PPS: Please, no guessing. I don't have the time to "try rebooting, try reinstalling". Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Maybe the sc command can overwrite the perms: http://support.microsoft.com/kb/914392/en-us
ASKER
Well, I've done what you said and it seems the issue was solved, but the first time after the deletion of the key the service didn't install itself anymore. As a matter of fact, i checked the permissions on that key with regedit and everything seemed to be ok. weird stuff..
by the way, the sc command didn't work, failed with access denied.
by the way, the sc command didn't work, failed with access denied.
I've looked at the permissions to the key as well and the permissions to the servcie have nothing to do with the permissions to the registry key.
The permissions are coded under ..\Services\servicename\Se curity\Sec urity, but I was unable to change the settings by just exporting and importing this key.
Anyway, glad it helped.
The permissions are coded under ..\Services\servicename\Se
Anyway, glad it helped.