5

It's there a way i can give the rights to a specific user, for restart a specific service on windows server 2008 ?

Bart Silverstrim
  • 31,092
  • 9
  • 65
  • 87
Cédric Boivin
  • 732
  • 4
  • 13
  • 31
  • Pretty much the same thing: http://serverfault.com/questions/15147/how-do-i-give-a-domain-user-permission-to-start-and-stop-a-tomcat-service – Evan Anderson Aug 03 '10 at 14:14
  • 2
    Possible duplicate of [How do I give a domain user permission to start and stop a Tomcat service?](https://serverfault.com/questions/15147/how-do-i-give-a-domain-user-permission-to-start-and-stop-a-tomcat-service) – Vadzim Sep 24 '18 at 10:30

2 Answers2

7

You can use the sc command to set permissions on a specific service.

The format is a little difficult to understand, but first you will need to find the user or group's SID to use the command (something like "S-1-5-21-....").

sc myserver sdset spooler D:(A;;RPWP;;;place-sid-here)

A couple notes on that command:

  • RP Allows service start
  • WP Allows service stop

Replace myserver with your server's name and spooler with the service you want to edit.

More information is available at the following locations:

http://technet.microsoft.com/en-us/library/cc742037(WS.10).aspx

http://msmvps.com/blogs/erikr/archive/2007/09/26/set-permissions-on-a-specific-service-windows.aspx

Doug Luxem
  • 9,592
  • 7
  • 49
  • 80
  • Additionally you need to prefix the entires with D: [as per my answer here](http://serverfault.com/questions/184279/give-users-the-right-to-restart-a-service/184338#184338). In your example, this would be: sc myserver sdset spooler D:(A;;RPWP;;;place-sid-here) – Will Sep 24 '10 at 14:25
1

Waiting for my VMs to spin up, but it looks like this should work (from reading this)

  • Open group policy to Computer Configuration\Policies\Windows Settings\Security Settings\System Services
  • Edit the service in question, enable "define policy setting" and then "edit security"
  • Add the user and give them "read" and "start, stop, and pause" rights

I'll swing by after I've tried this out, but good question! I had no idea this had been added.

This might also work: Remotely restarting a service for a non-administrator user

Kara Marfia
  • 7,892
  • 5
  • 32
  • 56