CTX106393 - How to Recreate the Ctx_SmaUser Account

Citrix states in their article: CTX106393

CTX106393 - How to Recreate the Ctx_SmaUser Account

This document was published at: http://support.citrix.com/article/CTX106393

Document ID: CTX106393, Created on: May 4, 2005, Updated: Jan 19, 2006

Products: Citrix Presentation Server 4.0 for Microsoft Windows 2000, Citrix Presentation Server 4.0 for Microsoft Windows 2003, Citrix Presentation Server 4.0 x64 Edition

Summary

The Citrix SMA Service and the Citrix Print Manager service are configured to be started by a local user created during the install of Citrix Presentation Server 4.0 called Ctx_SmaUser. If this user account is deleted, printer auto creation may fail. SMA alerts will not be sent and/or client printing will not function properly. The Citrix SMA Service and/or the Citrix Print Manager service cannot be started.

Cause

The Ctx_SmaUser account has been deleted, corrupted, or denied permissions required to start these services.

Procedure

The following are the steps required to create the Ctx_SmaUser account. Unless otherwise indicated, the steps below apply to both Windows 2000 Server and Windows Server 2003.

1. Create a local user account called Ctx_SmaUser in Local Users and Groups.

a. Assign a password to the account that is consistent with your organization’s policies regarding Service or System passwords.

b. Make use that the check boxes for “User cannot change password” and for “Password never expires” are turned on.

c. Assign the account to the Power Users machine local group.

d. (Optional) In the Sessions tab of the Properties of the Ctx_SmaUser account, set the Idle Session Limit to 10 minutes.

2. Configure the permissions of the ICA Listener port.

a. Got to Administrative Tools > Terminal Services Configuration > ICA-tcp > Properties > Permissions

b. Add the Ctx_SmaUser account to the Access Control List (ACL) for the listener. By default, Windows will allow Guest permissions to the account in the ACL, but these permissions are not enough.

c. Click on the Advanced button and select the Ctx_SmaUser account from the list.

d. Click on the Edit button. In the Advanced ACL, uncheck the Logon permission check box and check both the Query Information and the Virtual Channels check boxes. Click OK to proceed.

e. Click OK to apply. (Note: This is required for the Citrix Print Management Service to work properly.)

3. Assign rights to the Ctx_SmaUser account in Local Security Policy. Go to Administrative Tools > Local Security Policy > Local Policies > User Rights Assignment.

a. (For Windows 2003) Make sure that the Power Users local machine group is in the “Allow log on locally” right.

b. (For Windows 2003) Add the Ctx_SmaUser account to the “Impersonate a client after authentication” right.

c. (Both Windows 2003 and Windows 2000) Add the Ctx_SmaUser account to the “Load and unload device drivers” right.

d. (Both) Add the account to the “Log on as a batch job” right.

e. (Both) Add the account to the “Log on as a service” right.

f. (For Windows 2000) Verify the Local Policy > Security Options "Strengthen default permissions of global system objects" effective permission is enabled.

g. (For Windows 2003) Verify the Local Policy > Security Options "Strengthen default permissions of internal system objects" effective permission is enabled.

h. (Windows 2000) Verify that the Power Users machine local group has been given the right to “Log on locally.”

The following steps are for configuring Component Services for Windows 2000 Server. Skip to Step 5 to configure Component Services for Windows Server 2003 (Note).

4. Configure permissions for Component Services. In the Start Menu, go to Programs > Administrative Tools > Component Services.

a. Expand the following nodes in the left-hand pane: Component Services\Computers\My Computer.

b. Right-click My Computer and select Properties.

c. Go to the Default Security tab and click on the Edit Default button in the Launch Permissions section.

d. Click on the Add button to add the Ctx_SmaUser to the ACL. Make sure that the permission is set to “Allow DefaultLaunchPermission.”

e. Click OK and proceed to Step 6.

5. From the Start menu, run dcomcnfg or go to Administrative Tools > Component Services.

a. Expand the following nodes in the left-hand pane: Component Services\Computers\My Computer.

b. Right-click My Computer and select Properties.

c. Go to the COM Security tab to the Launch & Activation Permissions box and click on the Edit Default button.

i. Add the Ctx_SmaUser account to the ACL.

ii. By default, the allow Local Launch permission will be select. Make sure to add allow Local Activation permission as well.

iii. Click OK on both the ACL and in the My Computer Properties dialog box.

d. Expand the My Computer node in the left-hand pane of Component Services to reveal and to select the DCOM Config folder.

e. After the DCOM Config folder has been selected, the right-hand pane will reveal a number of DCOM objects.

f. From the DCOM objects, select the Citrix IMA Service object, right-click and select Properties.

g. Go to the Security tab.

i. In the Access Permissions section, click on the Edit button.

ii. Add the Ctx_SmaUser to the ACL and ensure that both the Allow Local Access and the Allow Remote Access permissions have been assigned to the account.

iii. Click OK on both the ACL and in the Security tab to continue.

h. From the list of DCOM objects, select the Citrix SMA Service DCOM object, right-click, and select Properties.

i. Go to the Security tab.

ii. Click on the Edit button in the Launch & Activation section. Add the Ctx_SmaUser account to the ACL and make sure that both the Local Launch and the Local Activation permissions are assigned.

iii. Click on the Edit button in the Access Permission section. Add the Ctx_SmaUser account to the ACL and make sure that both the Local Access and the Remote Activation permissions are assigned.

iv. Click on the Edit button in the Change Configuration Permission section. Make sure that both the Local Access and the Remote Activation permissions are assigned to the Power Users machine local group. You could add the Ctx_SmaUser account to this list, but that would be redundant.

v. Click on the OK buttons in the ACL and in the Security tab to continue.

6. Open the Computer Management console and navigate to the Services snap-in or run services.msc from Start > Run.

a. Double-click on the Citrix Print Management service and select the Log On tab.

b. Verify that the “This account” radio button is selected and that logon account is set to .\Ctx_SmaUser.

c. In the Password and in the Confirm Password fields, enter the password selected for the newly-created Ctx_SmaUser account. Click on the OK button to continue.

d. Repeat the same steps for the Citrix SMA Service.

More Information

In Windows Server 2003, both services can be started or restarted right away.

In Windows 2000 Server, a reboot of the server is required to allow the Component settings to be written to the Registry. Restarting the Citrix SMA Service before a reboot will result in the following error appearing numerous times in the System Events log:

Event Type: Error
Event Source: DCOM
Event Category: None
Event ID: 10003
Date: 5/23/2005
Time: 11:51:09 PM
User: {hostname}\Ctx_SmaUser
Computer: {hostname}
Description:
Access denied attempting to launch a DCOM Server using DefaultLaunchPermssion. The server is:
{GUID of the Component}

The user is Ctx_SmaUser/{hostname}, SID={the SID of the new Ctx_SmaUser account}.

It is also possible to create the Ctx_SmaUser account and then make the account a full Citrix Administrator using the Management Console in order to allow for appropriate access and needed permissions.

Note: The “Launch & Activation” section is a new functionality with Service Pack 1 for Windows 2003.

Before Service Pack 1 there was only one “Launch” permission, which would include activation permission. After upgrading this is separated into:

• Local Launch

• Local Activation

• Remote Launch

• Remote Activation

For more information see Microsoft article DCOM Security Enhancements.



Primary links

Custom Search

Who's new

  • Preatercelepe
  • Kxtuzjgv
  • Maitacewwisat
  • abnonsoks
  • themopoty

Who's online

There are currently 0 users and 5 guests online.

KrissysCorner.com RuthSwensonLaw.com CreativeLizardProductions.com

DISCLAIMER:

None of this has anything to do with us, someone else is responsible for the entire thing, and we have no idea who or why. We do not know anything about it. It may be alien life forms for all we know: we haven't a clue. You cannot blame us for anything that may result from your visit. That was entirely your own personal choice, made by you of your own volition, and without our knowledge. We do not, after all, have any control over you and cannot by any stretch of the imagination be expected to accept or acknowledge, be it legally or morally, any accountability for decisions made by you on an independent basis, utilizing your own free will, and without our intervention. We are therefore in no way, shape, or form answerable to anyone for any consequences arising from the aforementioned or indeed any other actions, similar or otherwise, because it was not us that did, or did not do anything. It is not even remotely our fault, and we are in no way prepared or willing to accept any liability, not even slightly, ever. We are, in fact completely and utterly blameless, in that it is definitely not our concern, and no blame can possibly be laid at our doorstep, even if we had one, the possession of which we hereby reserve as being entirely our own free choice. The onus is not on us at all, and furthermore, never has been. The entire matter is wholly beyond our control, and completely out of our hands, each of which are washed scrupulously clean of the whole business. We are not accountable for anything at all, and we hereby categorically deny all responsibility for all that has ever, or will ever happen. Our innocence is therefore wholly beyond doubt and absolutely unimpeachable, and so cannot, under even the remotest or unlikeliest circumstances, be brought into question. By clicking either on a link on this site, clicking on a link that leads to this site, or by arriving at this site by natural or supernatural means, you are in effect accepting responsibility for the fact that it is all entirely your own fault, down to the most miniscule detail, and that you are wholly accountable for whatever outcome may arise as a consequence of the aforementioned action or actions insofar as they were undertaken personally by you on an entirely voluntary basis and without any persuasion, coercion or influence from any party or parties other than yourself. Don't come sniveling to us, we are only figments of your imagination. I also agree that if I am ever with a contributor to this website during mealtimes I agree to pay for any super-sizing of their meal, or at least a nice dessert or one of those foo-foo drinks with an umbrella or a monkey. By admitting to have seen the worthless spineless drivel on this website (also known as content)

I Agree Wholeheartedly and Without Reservation to the above. (Except maybe for that part about the monkey.)

All Your Base Are Belong To Us.

Soylent Green Is People!

Never make a bet with a Sicilian when Death is on the Line!

No. Really, I do agree.