Access denied editing text files to root C drive

Page 2 of 5 FirstFirst 1234 ... LastLast

  1. Posts : 26
    windows 7 64bit professional
    Thread Starter
       #11

    NoelDP said:
    I find it easier to read ICACLS output for permissions.

    ICACLS <pathname>\<filename>

    (e.g. ICACLS C:\Windows\System32\slui.exe )

    You can try running it locally by remote, and running it remotely, and see if there's a difference.

    Post the results, and I'll try and interpret them
    C:\Users\Me>ICACLS C:\links.txt
    C:\links.txt Everyone: (F)
    Andrew\Me: (F)
    BUILTIN\Administrators: (F)
    NT AUTHORITY\SYSTEM: (F)
    BUILTIN\Users: (F)
    Mandatory Label\High Mandatory Level: (I)(NW)

    Successfully processed 1 files; Failed processing 0 files
      My Computer


  2. Posts : 21,482
    Win 7 x64 Home Premium (and x86 VirtualBox VM)/Win10
       #12

    There's one default permission entry missing there - which may be because it's missing from the parent folder...

    Run the following command and let's see what we get...

    ICACLS C:\
      My Computer


  3. Posts : 26
    windows 7 64bit professional
    Thread Starter
       #13

    NoelDP said:
    There's one default permission entry missing there - which may be because it's missing from the parent folder...

    Run the following command and let's see what we get...

    ICACLS C:\
    C:\Users\Me>ICACLS C:\
    C:\ Everyone: (OI)(CI)(F)
    NT AUTHORITY\Authenticated Users: (OI)(CI)(F)
    Andrew\Me: (OI)(CI)(F)
    BUILTIN\Administrators: (OI)(CI)(F)
    NT AUTHORITY\SYSTEM: (OI)(CI)(F)
    BUILTIN\Users: (OI)(CI)(F)
    Mandatory Label\High Mandatory Level: (OI)(NP)(IO)(NW)

    Successfully processed 1 files; Failed processing 0 files
      My Computer


  4. Posts : 21,482
    Win 7 x64 Home Premium (and x86 VirtualBox VM)/Win10
       #14

    OK - maybe if we change that permission then, it'll correct things. (there's a minor inheritance error)

    run the following commands from an Elevated Command prompt...

    ICACLS C:\links.txt /remove "Mandatory Label\High Mandatory Level"
    ICACLS C:\ /grant "NT AUTHORITY\Authenticated Users":(IO)(OI)(CI)(F)
    ICACLS C:\ /grant "NT AUTHORITY\Authenticated Users":(AD)
    ICACLS C:\ /grant "NT AUTHORITY\SYSTEM":(F)

    ICACLS C:\
    ICACLS C:\links.txt

    post the results, and test the open/amend/save routine again.
      My Computer


  5. Posts : 25,847
    Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64
       #15

    Thank you Noel for coming to help.
      My Computer


  6. Posts : 21,482
    Win 7 x64 Home Premium (and x86 VirtualBox VM)/Win10
       #16

    Interesting problem :)
      My Computer


  7. Posts : 26
    windows 7 64bit professional
    Thread Starter
       #17

    NoelDP said:
    OK - maybe if we change that permission then, it'll correct things. (there's a minor inheritance error)

    run the following commands from an Elevated Command prompt...

    ICACLS C:\links.txt /remove "Mandatory Label\High Mandatory Level"
    ICACLS C:\ /grant "NT AUTHORITY\Authenticated Users": (IO)(OI)(CI)(F)
    ICACLS C:\ /grant "NT AUTHORITY\Authenticated Users": (AD)
    ICACLS C:\ /grant "NT AUTHORITY\SYSTEM": (F)

    ICACLS C:\
    ICACLS C:\links.txt

    post the results, and test the open/amend/save routine again.
    Ok just did everything you asked. Everything responded with successful messages but afterwards I tested it and the problem is still there :(

    C:\Users\Me>ICACLS C:\
    C:\ NT AUTHORITY\SYSTEM:(F)
    NT AUTHORITY\Authenticated Users:(AD)
    NT AUTHORITY\Authenticated Users:(OI)(CI)(IO)(F)
    Everyone:(OI)(CI)(F)
    NT AUTHORITY\Authenticated Users:(OI)(CI)(F)
    Andrew\Me:(OI)(CI)(F)
    BUILTIN\Administrators:(OI)(CI)(F)
    NT AUTHORITY\SYSTEM:(OI)(CI)(F)
    BUILTIN\Users:(OI)(CI)(F)
    Mandatory Label\High Mandatory Level:(OI)(NP)(IO)(NW)

    Successfully processed 1 files; Failed processing 0 files

    C:\Users\Me>ICACLS C:\links.txt
    C:\links.txt Everyone:(F)
    Andrew\Me:(F)
    BUILTIN\Administrators:(F)
    NT AUTHORITY\SYSTEM:(F)
    BUILTIN\Users:(F)
    Mandatory Label\High Mandatory Level:(I)(NW)

    Successfully processed 1 files; Failed processing 0 files
      My Computer


  8. Posts : 21,482
    Win 7 x64 Home Premium (and x86 VirtualBox VM)/Win10
       #18

    If you open Notepad as Administrator, does this give you sufficient rights?
    Who is the Owner of the file?

    By default, Standard users don't have access to the root folder - I think this is caused by the "Mandatory Label\High Mandatory Level" permission setting, which is inherited - and I can't find an easy way to switch it off....

    This is actually a 'good thing' under most circumstances, as it prevents a lot of potential malware threats.

    You can change this default using the procedures here...

    http://en.wikipedia.org/wiki/Administrative_share
      My Computer


  9. Posts : 26
    windows 7 64bit professional
    Thread Starter
       #19

    Well I said this in my OP "-I have notepad set to "Run as Administrator" on both windows 7 machines" maybe I don't understand exactly what you want me to do. I have switched ownership of the file multiple times testing it out to see if it would fix the problem. I have tried Everyone, Me (Andrew\Me), Administrators(Andrew\Administrators), Authenticated Users, Users(Andrew\Users), SYSTEM. Right now it's set to Me (Andrew\Me).

    How to enable in Windows Vista, Windows 7, and Windows 8

    By default, Windows Vista and newer versions of Windows prevent local accounts from accessing administrative shares through the network.
    To enable administrative shares you have to make a registry change. Click on Start Menu and in the search box type ‘regedit’ and press ENTER. Add this registry item:
    Hive: HKEY_LOCAL_MACHINE
    Key: Software\Microsoft\Windows\CurrentVersion\Policies\System
    Name: LocalAccountTokenFilterPolicy
    Data Type: REG_DWORD
    Value: 1
    After rebooting, the hidden share is accessible from other computers. Note that this change removes Windows' restrictions on remote User Account Control.
    You may be able to use 'net stop server' and then 'net start server' from an administrative command prompt instead of rebooting.


    When I was researching on how to fix this problem i saw a post with someone saying to do that. Problem is, I don't have LocalAccountTokenFilterPolicy in that folder. Not sure why or what I should do.
      My Computer


  10. Posts : 26
    windows 7 64bit professional
    Thread Starter
       #20

    NoelDP you still around? You were responding back pretty fast. Just wondering if you stopped posting cause you were stumped or something else? I thought we might of been close to figuring this out.
      My Computer


 
Page 2 of 5 FirstFirst 1234 ... LastLast

  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 09:21.
Find Us