Windows 8 and 8.1 Forums


Administrator doesn't have permission to save files

  1. #1


    Posts : 3
    windows 8.1

    Administrator doesn't have permission to save files


    Hi everyone

    i have just started using windows 8.1 on a new laptop and i am logged in as an administrator. i am trying to edit the hosts. txt file in

    C:\Windows\System32\drivers\etc\hosts.txt
    however i keep getting this message:

    C:\Windows\System32\drivers\etc\hosts.txt
    You don't have permission to save in this location.
    Contact the administrator to obtain permission.
    Would you like to save in the My Documents folder instead?




    how can i alter the permissions level. i mean, i should be logged in as an administrator so why does the system think that i am not the administrtor and where can i go to alter it.

    warm regards

    Paul

      My System SpecsSystem Spec

  2. #2


    Posts : 1,875
    Windows 10 Pro Prieview x64


    Right click and run notepad as administrator.

    Also you want to be editing C:\Windows\System32\drivers\etc\hosts not C:\Windows\System32\drivers\etc\hosts.txt as the hosts file doesn't have a .txt extension. If you have a .txt on the end you want to rename it.

    Running as an administrator allows you to adopt administrator authority by right clicking and selecting "Run as Administrator" - it doesn't automatically do it. The hosts file is owned by SYSTEM and I wouldn't change it.
      My System SpecsSystem Spec

  3. #3


    Posts : 2,130
    Windows 8.0 x64


    In addition your account is not the full gun toting Administrator account. (It's really equivalent to an Operator account under NT Server 4.) See this to disable or enable the real thing:
    Built-in Administrator Account - Enable or Disable in Windows 8
      My System SpecsSystem Spec

  4. #4


    Posts : 3
    windows 8.1


    hello AdamF

    thank you so much for replying.

    i am so sorry; i am not clear how i can run notepad as an administator. i went to the location of the file:

    C:\Windows\System32\drivers\etc

    and then tried to right click onto the hosts file so that i could open it in notepad as an administrator; but that option did not come up.

    can you please explain a little bit further how i can us notepad to open a file as an administrator

    really appricaite this adam

    warm regards

    paul
      My System SpecsSystem Spec

  5. #5


    Posts : 1,875
    Windows 10 Pro Prieview x64


    Hi Paul,

    You need to run Notepad as administrator and then open the file.

    Go to start screen and type "Notepad". You will see the application on the right hand side of the screen. Right click on that and select "Run as Administrator". You will get a UAC pop-up saying "Allow this program to change files" or something like that. Say yes.

    Now Notepad is open you can open your file (click on file, open and browse for it).

    When you have made your changes save it back (click on save as) as hosts type all files (not .txt) and then check it hasn't renamed it hosts.txt. If it has renamed it then delete hosts and rename hosts.txt back to hosts.

    The reason for the last bit is if you save it as .txt the file will not be used and it will not see your new servers. Normally you don't have to do that.
      My System SpecsSystem Spec

  6. #6


    Posts : 3
    windows 8.1


    thank you adamF and to MilesAhead for your kind help. i got it working . you guys are the best!!

    Ps Miles David is the best ever!!
      My System SpecsSystem Spec

  7. #7


    Posts : 1,875
    Windows 10 Pro Prieview x64


    Quote Originally Posted by paulkendal View Post
    thank you adamF and to MilesAhead for your kind help. i got it working . you guys are the best!!

    Ps Miles David is the best ever!!
    You are welcome. I guess you mean Miles Davis or Larry David. Or both perhaps
      My System SpecsSystem Spec

  8. #8


    Posts : 2,130
    Windows 8.0 x64


    Quote Originally Posted by paulkendal View Post
    thank you adamF and to MilesAhead for your kind help. i got it working . you guys are the best!!

    Ps Miles David is the best ever!!
    Glad you like the music of Miles. And that you got everything working.
      My System SpecsSystem Spec

  9. #9


    I am experiencing a similar issue. I have taken ownership of /Windows/System32/Drivers/etc. I have opened notepad running as administrator. Problem is I receive varying error messages when attempting to save over the old hosts file depending on how I choose to save.
    Saving directly from within notepad: "The process cannot access the file because it is being used by another process."
    Attempting to copy the new file from desktop to hosts file location and replacing: "The action can't be completed because the folder or a file in it is open in another program."
    I have also received a message saying: "Action can't be completed because the file is open in Cryptographic Services" if I attempt to rename the old hosts file.
    Any insight you can provide would be greatly appreciated. This is a laptop that I just received as a gift and the system was freshly setup. The only changes that have been made were: 120+ Windows updates, uninstalling McAfee in order to replace it with Eset, turning off IE, and installing Firefox. Then I ran into this little hiccup editing the hosts file, which has caused me to lose access to to the internet. I simply want to revert it back to its original form and never touch it again.
      My System SpecsSystem Spec

  10. #10


    Harrisonburg, Va.
    Posts : 10,488
    Windows 8.1.1 Pro with Media Center


    I was denied access to change my hosts file until I took ownership of it.

    Here is a copy of mine if you want to try replacing yours.

    Code:
    # Copyright (c) 1993-2009 Microsoft Corp.#
    # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
    #
    # This file contains the mappings of IP addresses to host names. Each
    # entry should be kept on an individual line. The IP address should
    # be placed in the first column followed by the corresponding host name.
    # The IP address and the host name should be separated by at least one
    # space.
    #
    # Additionally, comments (such as these) may be inserted on individual
    # lines or following the machine name denoted by a '#' symbol.
    #
    # For example:
    #
    #      102.54.94.97     rhino.acme.com          # source server
    #       38.25.63.10     x.acme.com              # x client host
    
    
    # localhost name resolution is handled within DNS itself.
    #    127.0.0.1       localhost
    #    ::1             localhost
    
    
    127.0.0.1       localhost
    Take ownership---

    Take Ownership - Add to Context Menu in Windows 8

    Considering the date on my hosts file, your old one is probably the same.

    Somebody else may reply with a different insight.

    A picture---

    Click image for larger version
    Last edited by David Bailey; 29 Dec 2014 at 16:58. Reason: added picture
      My System SpecsSystem Spec

Page 1 of 3 123 LastLast
Administrator doesn't have permission to save files
Related Threads
I was trying to change the permissions on theme1.theme and got the "Unable to save permission changes on theme1.theme" "Access is denied". What is the solution? thanks.... I found that I could not take control as administrator but only as user????
Hey Windows 8 experts, I just installed Windows 8.1 and I notice that after installing some software and wanting to save the registration keys as a text file during setup I would get this error message: "You don't have permission to save to this location. Contact the administrator to obtain...
I cannot save into any Adobe Captivate 7 x64 \ Gallery folders: https://forums.adobe.com/servlet/JiveServlet/downloadImage/2-6441425-645161/450-166/Capture1.PNG Read only is selected in the properties....
I'm going in circles and cannot find a solution that I understand for this issue. When I attempt to copy from a drive to my "C" drive I get a popup stating "You'll need to provide administrator permission to copy to this folder". I've turned off UAC via the slider I've downloaded...
I have followed the instructions from the Windows 7 forum on changing the owner/permissions for a file from Trusted Installer to Administrator but cannot see an EDIT button. I am trying to delete files associated with the Delta Search malware which was detected and deactivated by Malwarebytes.
Every time I move files on my portable hard drive, it says it needs administrator permission to continue. I click yes and it works, but it consumes a lot of extra time every time I move files from one folder to another. How can I stop this from asking every time?
In just two days of use, Windows 8 has certainly set a new record for pestering me about administrator permission. I turned UAC all the way down, but can't think of anything else. 3829 Is there anything that basically puts a stop to this? It's like high-fiving oneself over and over with...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook