Fixing User Access in Windows XP Home

14 Sep

If you log onto Windows XP Home under an account with Administrator privileges and try to access the files in the profile of another account, you will get an Access Denied error. This is because of how the permissions are set up on the directory tree. In one recent example, I found that the Owner of the directory tree couldn’t be displayed, and that the Account that used that profile and the SYSTEM account had Full Control, whereas no other account had any control.What I would like the permissions to be is for the profile user to be the owner, but for the Administrators group to have Full control. You can’t do this (at least, not easily) using the security tab interface in Windows XP Home (either through the Security tab hack for XP Home, or through logging in in Safe Mode) nor through CACLS, XP’s built-in command line tool for file permissions.

Moderator icon

Instead, I used SetACL, a great tool that I have been using more and more lately. It took me a while to figure out how to accomplish what I wanted, but eventually I came up with the following method of changing the permissions for the whole tree:

  1. Change the owner of the profile directory to the Administrators group.
  2. Give the Administrators group Full control, and enable permissions propagation for the entire tree.
  3. Reset the owner to the account holder.

The syntax of SetACL can be pretty obscure, so here is an example batch file to do the above. The account affected is the Owner account.

setacl.exe -on “C:\Documents and Settings\Owner” -ot file -actn setowner -ownr n:Administrators -rec cont_obj

setacl.exe - -on “C:\Documents and Settings\Owner” -ot file -actn ace -ace “n:Administrators;p:full” -actn rstchldrn -rst dacl

setacl.exe -on “C:\Documents and Settings\Owner” -ot file -actn setowner -ownr n:Owner -rec cont_obj

The above lines wrap, so note that each line starts with setacl.exe.

About these ads

3 Responses to “Fixing User Access in Windows XP Home”

  1. Kenneth Ho January 6, 2012 at 8:07 am #

    Hi there, this weekend is pleasant in favor of me, as this occasion i am reading this fantastic informative post here at my residence.

  2. office furniture January 8, 2012 at 11:19 am #

    Hey nice site, simply checking out some blogs, appears a a very nice theme you are using. I’m currently using Drupal for a few of my sites but seeking to switch one of them over to a platform very much like yours as a test site.

  3. best diets January 8, 2012 at 12:59 pm #

    Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain additional information, would you consider updating your site with more facts? This can be very helpful.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

%d bloggers like this: