How can I change ACLs recursively using cacls.exe?What's going on with my fileserver/NAS folder permissions?...
How much cash can I safely carry into the USA and avoid civil forfeiture?
How to not starve gigantic beasts
Was there a Viking Exchange as well as a Columbian one?
How did Captain America manage to do this?
Can I criticise the more senior developers around me for not writing clean code?
Overlay of two functions leaves gaps
Elements other than carbon that can form many different compounds by bonding to themselves?
How do I deal with a coworker that keeps asking to make small superficial changes to a report, and it is seriously triggering my anxiety?
Pre-plastic human skin alternative
Implications of cigar-shaped bodies having rings?
Critique of timeline aesthetic
What are the steps to solving this definite integral?
Is the claim "Employers won't employ people with no 'social media presence'" realistic?
Who was the lone kid in the line of people at the lake at the end of Avengers: Endgame?
a sore throat vs a strep throat vs strep throat
How do I reattach a shelf to the wall when it ripped out of the wall?
Is it idiomatic to construct against `this`
Can I grease a crank spindle/bracket without disassembling the crank set?
Rivers without rain
Apply MapThread to all but one variable
How come there are so many candidates for the 2020 Democratic party presidential nomination?
bldc motor, esc and battery draw, nominal vs peak
Why does nature favour the Laplacian?
Map of water taps to fill bottles
How can I change ACLs recursively using cacls.exe?
What's going on with my fileserver/NAS folder permissions? (Windows 7)Adding users to a directory recursively windows 7NTFS: prevent/deny directory delete in a otherwise “personal” folderRestore default Linux permissionswindows xp Professional restore Security Descriptors after cacls /t /e /pRestricting access to the C driveIs it possible to use common AuthorizedKeysFile for a group of users without disabling StrictMode in sshd_config?can't access specific files in bindfs mountUsing NFSv4 ACLs on LinuxHow to fix “Deny Everyone” permissions in registry
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I want to restrict the access for everything inside the work
directory to me and the system only. I tried this with the following command:
cacls.exe work /t /p 'PIXLA09Maaartin:f' 'NT AUTHORITYSYSTEM':f
However it doesn't work at all. The following command should show only the two specified users but instead shows a very long list of permissions:
cacls.exe work/somedirectory
I tried to use /g
instead of /p
, too. Since I didn't use /e
the permissions shouldn't get edited but replaced.
Any ideas what's wrong?
windows-xp permissions cacls
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I want to restrict the access for everything inside the work
directory to me and the system only. I tried this with the following command:
cacls.exe work /t /p 'PIXLA09Maaartin:f' 'NT AUTHORITYSYSTEM':f
However it doesn't work at all. The following command should show only the two specified users but instead shows a very long list of permissions:
cacls.exe work/somedirectory
I tried to use /g
instead of /p
, too. Since I didn't use /e
the permissions shouldn't get edited but replaced.
Any ideas what's wrong?
windows-xp permissions cacls
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I want to restrict the access for everything inside the work
directory to me and the system only. I tried this with the following command:
cacls.exe work /t /p 'PIXLA09Maaartin:f' 'NT AUTHORITYSYSTEM':f
However it doesn't work at all. The following command should show only the two specified users but instead shows a very long list of permissions:
cacls.exe work/somedirectory
I tried to use /g
instead of /p
, too. Since I didn't use /e
the permissions shouldn't get edited but replaced.
Any ideas what's wrong?
windows-xp permissions cacls
I want to restrict the access for everything inside the work
directory to me and the system only. I tried this with the following command:
cacls.exe work /t /p 'PIXLA09Maaartin:f' 'NT AUTHORITYSYSTEM':f
However it doesn't work at all. The following command should show only the two specified users but instead shows a very long list of permissions:
cacls.exe work/somedirectory
I tried to use /g
instead of /p
, too. Since I didn't use /e
the permissions shouldn't get edited but replaced.
Any ideas what's wrong?
windows-xp permissions cacls
windows-xp permissions cacls
edited May 5 '11 at 2:10
3498DB
16k114862
16k114862
asked May 4 '11 at 18:41
maaartinusmaaartinus
1,60262137
1,60262137
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
There might be a small error in your first commandline. The :f should be outside the quotation marks. It also seems that you have used single quotes instead of double quotes. That didn't work when I tried it.
This command line worked OK for me:
cacls test /t /g "computernamesahmeepee":f "system":f
or using your names:
cacls work /t /g "PIXLA09Maaartin":f "system":f
Another possible issue is the strange order in which the cacls command seems to apply permission changes. If you run the command above, but instead of your own account you grant permissions to someone else's, only the directory "test" will be affected - not its subdirectories. This is because the command seems to make changes from the top down, rather than from the bottom up, so when it comes to edit the ACLs on the subdirectories it no longer has permission!
My fault - I forgot to mention it was ran from Cygwin command line. AFAIK, bash removes the single quotes, which are needed there in order to interpret the backslashes literally. I'd try again from a WINDOZE shell and fix my question.
– maaartinus
May 14 '11 at 15:39
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%2f279176%2fhow-can-i-change-acls-recursively-using-cacls-exe%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
There might be a small error in your first commandline. The :f should be outside the quotation marks. It also seems that you have used single quotes instead of double quotes. That didn't work when I tried it.
This command line worked OK for me:
cacls test /t /g "computernamesahmeepee":f "system":f
or using your names:
cacls work /t /g "PIXLA09Maaartin":f "system":f
Another possible issue is the strange order in which the cacls command seems to apply permission changes. If you run the command above, but instead of your own account you grant permissions to someone else's, only the directory "test" will be affected - not its subdirectories. This is because the command seems to make changes from the top down, rather than from the bottom up, so when it comes to edit the ACLs on the subdirectories it no longer has permission!
My fault - I forgot to mention it was ran from Cygwin command line. AFAIK, bash removes the single quotes, which are needed there in order to interpret the backslashes literally. I'd try again from a WINDOZE shell and fix my question.
– maaartinus
May 14 '11 at 15:39
add a comment |
There might be a small error in your first commandline. The :f should be outside the quotation marks. It also seems that you have used single quotes instead of double quotes. That didn't work when I tried it.
This command line worked OK for me:
cacls test /t /g "computernamesahmeepee":f "system":f
or using your names:
cacls work /t /g "PIXLA09Maaartin":f "system":f
Another possible issue is the strange order in which the cacls command seems to apply permission changes. If you run the command above, but instead of your own account you grant permissions to someone else's, only the directory "test" will be affected - not its subdirectories. This is because the command seems to make changes from the top down, rather than from the bottom up, so when it comes to edit the ACLs on the subdirectories it no longer has permission!
My fault - I forgot to mention it was ran from Cygwin command line. AFAIK, bash removes the single quotes, which are needed there in order to interpret the backslashes literally. I'd try again from a WINDOZE shell and fix my question.
– maaartinus
May 14 '11 at 15:39
add a comment |
There might be a small error in your first commandline. The :f should be outside the quotation marks. It also seems that you have used single quotes instead of double quotes. That didn't work when I tried it.
This command line worked OK for me:
cacls test /t /g "computernamesahmeepee":f "system":f
or using your names:
cacls work /t /g "PIXLA09Maaartin":f "system":f
Another possible issue is the strange order in which the cacls command seems to apply permission changes. If you run the command above, but instead of your own account you grant permissions to someone else's, only the directory "test" will be affected - not its subdirectories. This is because the command seems to make changes from the top down, rather than from the bottom up, so when it comes to edit the ACLs on the subdirectories it no longer has permission!
There might be a small error in your first commandline. The :f should be outside the quotation marks. It also seems that you have used single quotes instead of double quotes. That didn't work when I tried it.
This command line worked OK for me:
cacls test /t /g "computernamesahmeepee":f "system":f
or using your names:
cacls work /t /g "PIXLA09Maaartin":f "system":f
Another possible issue is the strange order in which the cacls command seems to apply permission changes. If you run the command above, but instead of your own account you grant permissions to someone else's, only the directory "test" will be affected - not its subdirectories. This is because the command seems to make changes from the top down, rather than from the bottom up, so when it comes to edit the ACLs on the subdirectories it no longer has permission!
answered May 14 '11 at 10:00
sahmeepeesahmeepee
1,549911
1,549911
My fault - I forgot to mention it was ran from Cygwin command line. AFAIK, bash removes the single quotes, which are needed there in order to interpret the backslashes literally. I'd try again from a WINDOZE shell and fix my question.
– maaartinus
May 14 '11 at 15:39
add a comment |
My fault - I forgot to mention it was ran from Cygwin command line. AFAIK, bash removes the single quotes, which are needed there in order to interpret the backslashes literally. I'd try again from a WINDOZE shell and fix my question.
– maaartinus
May 14 '11 at 15:39
My fault - I forgot to mention it was ran from Cygwin command line. AFAIK, bash removes the single quotes, which are needed there in order to interpret the backslashes literally. I'd try again from a WINDOZE shell and fix my question.
– maaartinus
May 14 '11 at 15:39
My fault - I forgot to mention it was ran from Cygwin command line. AFAIK, bash removes the single quotes, which are needed there in order to interpret the backslashes literally. I'd try again from a WINDOZE shell and fix my question.
– maaartinus
May 14 '11 at 15:39
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%2f279176%2fhow-can-i-change-acls-recursively-using-cacls-exe%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