Windows 8 Problem with Changing Access Control of a directory

Vivek

New Member
In order to make one of my directory secure, I changed the access control of the directory to none using the command
Code:
cacls DirName /e /p everyone:n
.

But when I tried to grant the full access using
Code:
cacls DirName /e /p everyone:f
, it gives me Access Denied Error. Also, I am unable to open the folder. Any help would be appreciated.

Thanks
~Ive
 
That is true, but if he's using cacls I would imagine he knows how. I looked at that guide, it's actually missing one of the easier ways to run anything as administrator. If you hold Shift + ctrl and left click your executable and it will run it as admin.
 
Cool! My thinking is we have a lot of visitors that log on the forum and don't post, but they do read the threads. My reply was for them.
I don't mean to step on you, but some times your replies are not always for a newbie.;)
I follow all your replies and you are very knowledgeable,:worship: but some times maybe you could make it a little more simple for the newbie users.
I'm just the opposite, I'm to windy.:rofl:
 
Hi @Neemobeer,
Thanks for the help. But that didn't worked because I was executing the commands in elevated cmd.
Below is the screenshot of what I ran:
maoqPUp.png



@holdum333 being a web developer I know a bit about those shits :p
 
Try taking ownership of the folder first with takeown /F <directory> then try assigning permissions. If that doesn't work...
  • download psexec PsExec
  • Open an elevated command prompt in the directory psexec is
  • Type psexec -s -h -i cacls <pathtodirectory> /e /p administrators:f
This should use the SYSTEM account to assign full access to the administrators group
 
Good for you Vivek! I'm glad it worked out for you. @Neemobeer is my idol. I think he has 3 or 4 degrees and working on another one.
My advice about CMD was for the guests that read these threads, not for you. Come back often and share your knowledge here on the forum.
Thanks for your feed back. I'm sure @Neemobeer will be pleased that it worked out for you!:up:
 
I'll tell you straight up, I'm almost never offended or angry at anyone for any reason so don't feel like your stepping on toes. I have been drinking a bit, but I'll try to explain Windows ACL model a bit. Windows uses the DAC acl model which is Discretionary Access Control. This means that those who own a given file or directory can give any access to anyone. If you don't have any permissions you can still take ownership of a file or directory provided you are a member of the administrators group. Once you have ownership you can give access to yourself or anyone. Hopefully that clears up why taking ownership resolved this.
 
Back
Top