-1

I created a special user who should never be able to CD into several system directories like program files, Windows directory, etc.

Whilte I can use icacls to setup the permissions on most of them, I cannot seem to do it on C:\Windows, because I get Access denied message. I'm trying it with an administrator account.

Why is this? How can I deny a user from listing (CD into) Windows directory?

3
  • 1
    Are you running in an elevated CMD? Anyway, I think this is a bad idea. e.g. How this user would be able to open Explorer.exe? Also, why do you can where he can navigate? assuming he not admin, he can't do anything with it...
    – EliadTech
    Apr 16, 2015 at 8:47
  • @EliadTech thank you, I think you have the point about for example explorer.exe, I haven't thought it over. After my question I decided to redesign the structure so that it won't be needed. If you form an answer I'll accept it. Apr 16, 2015 at 9:13
  • 1
    Changing permissions on system folders is the wrong solution in 99,99% of all cases.
    – Daniel
    Apr 16, 2015 at 11:39

1 Answer 1

3

You mustn't deny the user listing permission in the Windows directory, because he wouldn't be able to open vital programs (e.g. Explorer.exe), and that would cause all sorts of problem.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .