What permissions are required for the CPM to manage Windows services
Question
What permissions are required for the CPM to manage Windows services?
Environment
9.10;10.10;11.1;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;12.6;13.0 Privileged Access Manager (PAM, self-hosted) Central Policy Manager (CPM)
Answer
The CPM uses the user account specified in the password object to connect to the remote machine and change the password specified in the service. This user must have Modify permissions (WD) for that service.
By default, only Built-in Administrators have such permissions.
In addition you will need to make sure that:
1. The user is a member of the ‘Administrators group’ on the remote machine.
2. If it is a local user, disable the UAC for the ‘Administrator’s group’: In the Local Security Policy, select Local Security. In Security Options, disable "User Account Control: Run all administrators in Admin Approval Mode".
To view a security descriptor of a service use the following syntax:
sc \\<address> sdshow serviceName
(when running the command on the local machine, omit the "\\<address>")
The security descriptor, as displayed by sc sdshow, is formatted according the Security Descriptor Definition Language (SDDL).
The Discretionary ACL (DACL) which controls permissions, can be identified by the prefix "D:".
Each section, inside the parenthesis, represent a specific entry.
Inside the parenthesis, the user account and the correct permissions are specified.
The first letter represents Allow (A) or Deny (D).
Each pair of letters represents a specific permission:
SD - Delete
DC - Delete All Child Objects
WO - Modify owner
WD - Modify permissions
RP - Read all properties
RC - READ_CONTROL - read the security descriptor on this service.
SW - SERVICE_ENUMERATE_DEPENDENTS - list dependent services
LO - SERVICE_INTERROGATE - ask the service its current status
DT - SERVICE_PAUSE_CONTINUE - pause / continue the service
CC - SERVICE_QUERY_CONFIG - ask the SCM for the service's current configuration
CC - SERVICE_QUERY_CONFIG - ask the SCM for the service's current configuration
LC - SERVICE_QUERY_STATUS - ask the SCM for the service's current status
RP - SERVICE_START - start the service
WP - SERVICE_STOP - stop the service
CR - SERVICE_USER_DEFINED_CONTROL - send a service control defined by the service's authors
The last two letters define the security principal assigned with these permissions (a SID or well known aliases:
AU - Authenticated Users
AO - Account operators
RU - Alias to allow previous Windows 2000
AN - Anonymous logon
AU - Authenticated users
BA - Built-in administrators
BG - Built-in guests
BO - Backup operators
BU - Built-in users
CA - Certificate server administrators
CG - Creator group
CO - Creator owner
DA - Domain administrators
DC - Domain computers
DD - Domain controllers
DG - Domain guests
DU - Domain users
EA - Enterprise administrators
ED - Enterprise domain controllers
WD - Everyone
PA - Group Policy administrators
IU - Interactively logged-on user
LA - Local administrator
LG - Local guest
LS - Local service account
SY - Local system
NU - Network logon user
NO - Network configuration operators
NS - Network service account
PO - Printer operators
PS - Personal self
PU - Power users
RS - RAS servers group
RD - Terminal server users
RE - Replicator
RC - Restricted code
SA - Schema administrators
SO - Server operators
SU - Service logon user
Additional Information
Details
Q:
What permissions are required for the CPM to manage Windows services?
A:
The CPM uses the user account specified in the password object to connect to the remote machine and change the password specified in the service. This user must have Modify permissions (WD) for that service.
By default, only Built-in Administrators have such permissions.
In addition you will need to make sure that:
1. The user is a member of the ‘Administrators group’ on the remote machine.
2. If it is a local user, disable the UAC for the ‘Administrator’s group’: In the Local Security Policy, select Local Security. In Security Options, disable "User Account Control: Run all administrators in Admin Approval Mode".
To view a security descriptor of a service use the following syntax:
sc \\<address> sdshow serviceName
(when running the command on the local machine, omit the "\\<address>")The security descriptor, as displayed by sc sdshow, is formatted according the Security Descriptor Definition Language (SDDL).
The Discretionary ACL (DACL) which controls permissions, can be identified by the prefix "D:".
Each section, inside the parenthesis, represent a specific entry.
Inside the parenthesis, the user account and the correct permissions are specified.
The first letter represents Allow (A) or Deny (D).
Each pair of letters represents a specific permission:
SD - Delete
DC - Delete All Child Objects
WO - Modify owner
WD - Modify permissions
RP - Read all properties
RC - READ_CONTROL - read the security descriptor on this service.
SW - SERVICE_ENUMERATE_DEPENDENTS - list dependent services
LO - SERVICE_INTERROGATE - ask the service its current status
DT - SERVICE_PAUSE_CONTINUE - pause / continue the service
CC - SERVICE_QUERY_CONFIG - ask the SCM for the service's current configuration
CC - SERVICE_QUERY_CONFIG - ask the SCM for the service's current configuration
LC - SERVICE_QUERY_STATUS - ask the SCM for the service's current status
RP - SERVICE_START - start the service
WP - SERVICE_STOP - stop the service
CR - SERVICE_USER_DEFINED_CONTROL - send a service control defined by the service's authors
AU - Authenticated Users
AO - Account operators
RU - Alias to allow previous Windows 2000
AN - Anonymous logon
AU - Authenticated users
BA - Built-in administrators
BG - Built-in guests
BO - Backup operators
BU - Built-in users
CA - Certificate server administrators
CG - Creator group
CO - Creator owner
DA - Domain administrators
DC - Domain computers
DD - Domain controllers
DG - Domain guests
DU - Domain users
EA - Enterprise administrators
ED - Enterprise domain controllers
WD - Everyone
PA - Group Policy administrators
IU - Interactively logged-on user
LA - Local administrator
LG - Local guest
LS - Local service account
SY - Local system
NU - Network logon user
NO - Network configuration operators
NS - Network service account
PO - Printer operators
PS - Personal self
PU - Power users
RS - RAS servers group
RD - Terminal server users
RE - Replicator
RC - Restricted code
SA - Schema administrators
SO - Server operators
SU - Service logon user