I am installing a windows service as a administrator and setting it to auto start
C:\WINDOWS\system32>sc create DeepSleep binpath= "C:\Users\Public\DeepSleep.exe" start= auto
Now i have to set permission to this service so that it can be controled by normal users also.
C:\WINDOWS\system32>sc sdset DeepSleep D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)(A;;RPWPCR;;;S-1-5-21-2133228432-2794320136-1823075350-1000)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)
[SC] SetServiceObjectSecurity SUCCESS
Normal user still don't have permission
C:\Users\mandar>sc start DeepSleep
[SC] StartService: OpenService FAILED 5:
Access is denied.
Is there anything missing from sc sdset?