Subinacl Access Denied using subkeyreg
I have windows 7 x86, I am the only user and Administrator of my pc.
I want to be able to take ownership of the key(below) but subinacl will not allow it.
HKEY_LOCAL_MACHINESYSTEMControlSet001EnumUSBSTOR
The error is: RegSetKeySecurity Error: 5 Access is denied.
I've tried to launch it with an elevated command line and it still says error 5.
Two question:
Why is it doing this?
How to take ownership of this key? I would like to use subinacl if possible. But I am open minded to other tools as long as they can be used from the command line.
windows-7 ownership
add a comment |
I have windows 7 x86, I am the only user and Administrator of my pc.
I want to be able to take ownership of the key(below) but subinacl will not allow it.
HKEY_LOCAL_MACHINESYSTEMControlSet001EnumUSBSTOR
The error is: RegSetKeySecurity Error: 5 Access is denied.
I've tried to launch it with an elevated command line and it still says error 5.
Two question:
Why is it doing this?
How to take ownership of this key? I would like to use subinacl if possible. But I am open minded to other tools as long as they can be used from the command line.
windows-7 ownership
Why do you need to take ownership of that key?
– user3463
Jul 14 '12 at 0:30
@Randolph West I want to delete every subkey within it but it won't let me. Besides, I want to know why it doesn't work. It works if set the permissions manually from regedit.
– TwirlMandarin
Jul 14 '12 at 0:36
@AlexanderCeed, did you runsubinacl
from an admin command-prompt?
– Synetech
Jul 14 '12 at 0:50
@Synetech Yes. I right click on cmd.exe and select "Run as admin"
– TwirlMandarin
Jul 14 '12 at 1:09
add a comment |
I have windows 7 x86, I am the only user and Administrator of my pc.
I want to be able to take ownership of the key(below) but subinacl will not allow it.
HKEY_LOCAL_MACHINESYSTEMControlSet001EnumUSBSTOR
The error is: RegSetKeySecurity Error: 5 Access is denied.
I've tried to launch it with an elevated command line and it still says error 5.
Two question:
Why is it doing this?
How to take ownership of this key? I would like to use subinacl if possible. But I am open minded to other tools as long as they can be used from the command line.
windows-7 ownership
I have windows 7 x86, I am the only user and Administrator of my pc.
I want to be able to take ownership of the key(below) but subinacl will not allow it.
HKEY_LOCAL_MACHINESYSTEMControlSet001EnumUSBSTOR
The error is: RegSetKeySecurity Error: 5 Access is denied.
I've tried to launch it with an elevated command line and it still says error 5.
Two question:
Why is it doing this?
How to take ownership of this key? I would like to use subinacl if possible. But I am open minded to other tools as long as they can be used from the command line.
windows-7 ownership
windows-7 ownership
edited Jul 14 '12 at 2:04
HackToHell
5,80222962
5,80222962
asked Jul 13 '12 at 23:54
TwirlMandarinTwirlMandarin
1,13521425
1,13521425
Why do you need to take ownership of that key?
– user3463
Jul 14 '12 at 0:30
@Randolph West I want to delete every subkey within it but it won't let me. Besides, I want to know why it doesn't work. It works if set the permissions manually from regedit.
– TwirlMandarin
Jul 14 '12 at 0:36
@AlexanderCeed, did you runsubinacl
from an admin command-prompt?
– Synetech
Jul 14 '12 at 0:50
@Synetech Yes. I right click on cmd.exe and select "Run as admin"
– TwirlMandarin
Jul 14 '12 at 1:09
add a comment |
Why do you need to take ownership of that key?
– user3463
Jul 14 '12 at 0:30
@Randolph West I want to delete every subkey within it but it won't let me. Besides, I want to know why it doesn't work. It works if set the permissions manually from regedit.
– TwirlMandarin
Jul 14 '12 at 0:36
@AlexanderCeed, did you runsubinacl
from an admin command-prompt?
– Synetech
Jul 14 '12 at 0:50
@Synetech Yes. I right click on cmd.exe and select "Run as admin"
– TwirlMandarin
Jul 14 '12 at 1:09
Why do you need to take ownership of that key?
– user3463
Jul 14 '12 at 0:30
Why do you need to take ownership of that key?
– user3463
Jul 14 '12 at 0:30
@Randolph West I want to delete every subkey within it but it won't let me. Besides, I want to know why it doesn't work. It works if set the permissions manually from regedit.
– TwirlMandarin
Jul 14 '12 at 0:36
@Randolph West I want to delete every subkey within it but it won't let me. Besides, I want to know why it doesn't work. It works if set the permissions manually from regedit.
– TwirlMandarin
Jul 14 '12 at 0:36
@AlexanderCeed, did you run
subinacl
from an admin command-prompt?– Synetech
Jul 14 '12 at 0:50
@AlexanderCeed, did you run
subinacl
from an admin command-prompt?– Synetech
Jul 14 '12 at 0:50
@Synetech Yes. I right click on cmd.exe and select "Run as admin"
– TwirlMandarin
Jul 14 '12 at 1:09
@Synetech Yes. I right click on cmd.exe and select "Run as admin"
– TwirlMandarin
Jul 14 '12 at 1:09
add a comment |
2 Answers
2
active
oldest
votes
You have to take ownership of the registry key before you can change its permissions (you should set the ownership back afterwards).
Hmm, I could have sworn you can use the takeown
command to take ownership of a registry key, but it looks like you can’t.
Instead, depending on the version of Windows you use you can use the cacls
command, icacls
, or xcalcs
(update with a VB script), or even a third-party tool like RegDACL.
(cacls
and icacls
come with Windows 7)
add a comment |
Use the commands below with SetACL with administrative privileges:
set X="HKEY_LOCAL_MACHINESYSTEMControlSet001EnumUSBSTOR"
SetACL.exe -on %X% -ot reg -rec cont_obj -actn setowner -ownr "n:Everyone"
SetACL.exe -on %X% -ot reg -rec cont_obj -actn ace -ace "n:Everyone;p:full"
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f448693%2fsubinacl-access-denied-using-subkeyreg%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You have to take ownership of the registry key before you can change its permissions (you should set the ownership back afterwards).
Hmm, I could have sworn you can use the takeown
command to take ownership of a registry key, but it looks like you can’t.
Instead, depending on the version of Windows you use you can use the cacls
command, icacls
, or xcalcs
(update with a VB script), or even a third-party tool like RegDACL.
(cacls
and icacls
come with Windows 7)
add a comment |
You have to take ownership of the registry key before you can change its permissions (you should set the ownership back afterwards).
Hmm, I could have sworn you can use the takeown
command to take ownership of a registry key, but it looks like you can’t.
Instead, depending on the version of Windows you use you can use the cacls
command, icacls
, or xcalcs
(update with a VB script), or even a third-party tool like RegDACL.
(cacls
and icacls
come with Windows 7)
add a comment |
You have to take ownership of the registry key before you can change its permissions (you should set the ownership back afterwards).
Hmm, I could have sworn you can use the takeown
command to take ownership of a registry key, but it looks like you can’t.
Instead, depending on the version of Windows you use you can use the cacls
command, icacls
, or xcalcs
(update with a VB script), or even a third-party tool like RegDACL.
(cacls
and icacls
come with Windows 7)
You have to take ownership of the registry key before you can change its permissions (you should set the ownership back afterwards).
Hmm, I could have sworn you can use the takeown
command to take ownership of a registry key, but it looks like you can’t.
Instead, depending on the version of Windows you use you can use the cacls
command, icacls
, or xcalcs
(update with a VB script), or even a third-party tool like RegDACL.
(cacls
and icacls
come with Windows 7)
answered Jul 14 '12 at 2:14
SynetechSynetech
57k29184318
57k29184318
add a comment |
add a comment |
Use the commands below with SetACL with administrative privileges:
set X="HKEY_LOCAL_MACHINESYSTEMControlSet001EnumUSBSTOR"
SetACL.exe -on %X% -ot reg -rec cont_obj -actn setowner -ownr "n:Everyone"
SetACL.exe -on %X% -ot reg -rec cont_obj -actn ace -ace "n:Everyone;p:full"
add a comment |
Use the commands below with SetACL with administrative privileges:
set X="HKEY_LOCAL_MACHINESYSTEMControlSet001EnumUSBSTOR"
SetACL.exe -on %X% -ot reg -rec cont_obj -actn setowner -ownr "n:Everyone"
SetACL.exe -on %X% -ot reg -rec cont_obj -actn ace -ace "n:Everyone;p:full"
add a comment |
Use the commands below with SetACL with administrative privileges:
set X="HKEY_LOCAL_MACHINESYSTEMControlSet001EnumUSBSTOR"
SetACL.exe -on %X% -ot reg -rec cont_obj -actn setowner -ownr "n:Everyone"
SetACL.exe -on %X% -ot reg -rec cont_obj -actn ace -ace "n:Everyone;p:full"
Use the commands below with SetACL with administrative privileges:
set X="HKEY_LOCAL_MACHINESYSTEMControlSet001EnumUSBSTOR"
SetACL.exe -on %X% -ot reg -rec cont_obj -actn setowner -ownr "n:Everyone"
SetACL.exe -on %X% -ot reg -rec cont_obj -actn ace -ace "n:Everyone;p:full"
edited Nov 23 '17 at 9:36
Mokubai♦
56.9k16135153
56.9k16135153
answered Nov 23 '17 at 9:08
BiswapriyoBiswapriyo
2,73031241
2,73031241
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f448693%2fsubinacl-access-denied-using-subkeyreg%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Why do you need to take ownership of that key?
– user3463
Jul 14 '12 at 0:30
@Randolph West I want to delete every subkey within it but it won't let me. Besides, I want to know why it doesn't work. It works if set the permissions manually from regedit.
– TwirlMandarin
Jul 14 '12 at 0:36
@AlexanderCeed, did you run
subinacl
from an admin command-prompt?– Synetech
Jul 14 '12 at 0:50
@Synetech Yes. I right click on cmd.exe and select "Run as admin"
– TwirlMandarin
Jul 14 '12 at 1:09