Administrator with full access still can't execute program


  1. Posts : 6
    Windows 7 Professional
       #1

    Administrator with full access still can't execute program


    Hi all!

    I'm having a problem with a Windows 7 Professional VM.

    I'm trying to "lock down" the permissions of some files (cmd.exe, ftp.exe, etc)

    For example, I modify the permissions for C:\Windows\System32\cmd.exe so that only SYSTEM and Administrators have full access. I removed Users, Owner, etc from the list.

    Then, if I try to run cmd.exe, I get this message: "Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item."


    Which is confusing, to say the least. I gave the Administrators group (of which I'm a part of) full access: read, write, execute, etc yet I still can't run the executable. I tried adding other groups such as Users and INTERACTIVE, and THEN it works. However, that defeats the purpose, because then anyone can access the file, which I don't want.

    If anyone can shed some light on this issue, I'd greatly appreciate it.


    Thanks!
    Pedro
      My Computer


  2. Posts : 6
    Windows 7 Professional
    Thread Starter
       #2

    I hate to bump threads, but.. anybody? I'm still stuck with this issue
      My Computer


  3. Posts : 5,642
    Windows 10 Pro (x64)
       #3

    So everyone has access to cmd.exe...so? Just because they have access to the command line does not mean that can invoke administrative actions. Still bound to their privileges.
      My Computer


  4. Posts : 6
    Windows 7 Professional
    Thread Starter
       #4

    I understand, it's just that I was told to configure it so that only Administrators have access. It's just puzzling to me that even though the *Administrators* have Full Access, they still can't access the file. Ugh.
      My Computer


  5. Posts : 5,642
    Windows 10 Pro (x64)
       #5

    Administrators are part of the Users group and they are only part of the Administrators group when they use Run As Admin.
      My Computer


  6. Posts : 355
    Windows 7 Professional SP1 64bit, Manjaro Xfce, Debian 10 64bit Xfce
       #6

    Yes, off hand that's probably it.

    Was thinking it could be something with the unactivated by default true administrator which is hidden away from normal users, even normal administrator users.
      My Computer


  7. Posts : 6
    Windows 7 Professional
    Thread Starter
       #7

    What I'm seeing is that I can't run cmd.exe even if I do right-click -> "Run as administrator". I *have* to have Users as part of the permissions if I want to be able to run it, even if I'm an administrator. It's quite frustrating. I don't see why I can't just keep Users from being able to access this. The sad part is, it also happens with many other executables, such as ftp.exe.

    Edit:
    I looked around some, and found a setting called "Prevent access to the command prompt" under User Configuration -> Administrative Templates -> System. I enabled it to see if I could get around the issue, but it still prevents me from accessing the command prompt, even though I'm an administrator (the difference is that now, command prompt starts, but displays a message telling me it's been disabled by an administrator). Same thing happens if I "run as administrator". Again, I just feel like I'm missing something, because this doesn't make sense to me. :/
    Last edited by w1r3d; 18 Jun 2012 at 09:35.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 21:10.
Find Us