Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Windows 7 workstation, Launch 'regedit.exe' as 'Administrator'

Find the following registry key:

HKEY_CLASSES_ROOT\CLSID{76A64158-CB41-11D1-8B02-00600806D9B6}

Right click and select 'Permissions' Change owner to administrators group. Change permissions for administrators group. Grant Full Control. I get an error saying:

unable to save permission, access denied

Why do get access denied when I run as administrator?

share|improve this question

migrated from stackoverflow.com Oct 26 '12 at 6:36

This question came from our site for professional and enthusiast programmers.

    
What is the UAC set for? –  cowboydan Oct 25 '12 at 23:52
    
Are you on a domain? If so, the domain security settings may be restricting you. –  willell Oct 25 '12 at 23:52
add comment

1 Answer

up vote 2 down vote accepted

Administrator does not mean "you get all rights to do anything." Administrator happens to be an account (or in your case, most likely the Local Administrators group) which by default is given some sensitive privileges like SeDebugPrivilege and similar. However, as far as the security subsystem is concerned, it is just an account. (Very much unlike root in Unix-like operating systems) If you aren't the owner of the key in question, and your account does not have WRITE_DAC access to the registry key in question, then you won't be able to change the access control list on the key in question.

Try taking ownership first. By default, the local administrators group has SeTakeOwnershipPrivilege, which allows taking ownership of any object even without the WRITE_OWNER permission being granted by the object's discretionary access control list. Once you are the owner, you should be implicitly granted READ_CONTROL (which allows you to read the security descriptor on the object in question), and WRITE_DAC (which allows you to write to the DACL on the key in question). (Assuming the OWNER_RIGHTS SID isn't in use; that's extremely unlikely)

share|improve this answer
    
I will try that now –  reza Oct 26 '12 at 15:48
    
that was the correct answer, thank you –  reza Oct 26 '12 at 16:17
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.