Skip to main content

Service Mode: Windows: User Rights Assignment

On Windows a Qube! worker running in Service mode requires the following user rights under the User Rights Assignment security policy settings.

Group Policy SettingConstant Name
Act as part of the operating systemSeTcbPrivilege
Adjust memory quotas for a processSeIncreaseQuotaPrivilege
Debug programsSeDebugPrivilege
Impersonate a client after authenticationSeImpersonatePrivilege
Replace a process level tokenSeAssignPrimaryTokenPrivilege

When the user rights are correctly set you will see the following output in the workerlog.

QbWorker::enableRequiredPrivileges(): enabling required privileges for this process
INFO: successfully enabled required privilege[SeAssignPrimaryTokenPrivilege]
INFO: successfully enabled required privilege[SeIncreaseQuotaPrivilege]
INFO: successfully enabled required privilege[SeTcbPrivilege]
INFO: successfully enabled required privilege[SeImpersonatePrivilege]
INFO: successfully enabled required privilege[SeDebugPrivilege]
INFO: successfully enabled all required privileges
warning

A worker running in Desktop User mode may log errors in the workerlog when trying to enable the above user rights, but these are not needed by the DU mode worker and can be ignored.

QbWorker::enableRequiredPrivileges(): enabling required privileges for this process
ERROR: could not enable required privilege[SeAssignPrimaryTokenPrivilege]: Not all privileges or groups referenced are assigned to the caller.
ERROR: could not enable required privilege[SeIncreaseQuotaPrivilege]: Not all privileges or groups referenced are assigned to the caller.
ERROR: could not enable required privilege[SeTcbPrivilege]: Not all privileges or groups referenced are assigned to the caller.
ERROR: could not enable required privilege[SeImpersonatePrivilege]: Not all privileges or groups referenced are assigned to the caller.
ERROR: could not enable required privilege[SeDebugPrivilege]: Not all privileges or groups referenced are assigned to the caller.
ERROR: there were 5 errors when enabling required privileges