Oliver is the founder and lead editor of this site. Starting with Vista an Admin account has by default only the rights of a standard user. Step Drag the hosts file into your notepad editor. If I run notepad as administrator first, then open the file, I can save without problems. That basically makes the locked door useless and pointless. Welcome to the forum, Have you tried running notepad as admin? Windows 10 users are getting the error because they are not found hosts file to run as administrator or unable to save or save as hosts file in the same location. It means that the file cannot be edited in a regular way.
You are a member of the Administrators group, that's all. If your user name is included in that list, click it and set Permissions to Full control. I found a Microsoft support reference to this issue here: It should save with no access denied permissions. The problem is that by default all programs you run have the same rights and priveleges you do. I learned a lot about Windows 7 while messing around with themes, but this is basic knowledge. In some cases yes, but its not something most will have to do very often.
It has been done like this since the Vista-era. One with a lock, and one without. In etc folder you will now see 5 files such as hosts, lmhosts. What I had to do to get it to work was…. On click on add it here, you can find permission for all under the Allow column select all the checkbox shown in below image. A great freeware utility called HostsMan allows you to edit hosts file in Windows 7 through a comfortable editor. If that program happens to be malicious and this is very hard to prevent you have a problem.
When I try to save the file I get an error saying the hosts file exists would you like to overwrite, select yes. Hi Experts, I always use an alternative program to windows default notepad i. You can go through the effort to change this but it comes with a lot of risks. For the very first time when you clone your site manually you will face some issues. In most cases, you shouldn't disable your antivirus software. Now, Right click on hosts file and Enter lines of code, Than Save file Ctrl + S. So, you have to save that file to a different location; like your desktop or any drive.
Then navigating to the hosts file, Edit away. Now in folder options go to view and select show hidden files, folders and drivers. Under the security, tab finds the groups and usernames sequential select system administrator and user and click on edit to change the permission for the specific one user. In Textpad, the etc folder was hidden, so I had to type it into the file box to get into that directory within the open dialog. No matter what you do at a permission level you will still recieve access denied messages and you require permission from messages. I get access denied errors of different flavors when I attempt to make a new hosts file and replace it, attempt to edit the original and save over.
Filed Under: Tagged With: Reader Interactions I've been working in technology for over 20 years in a wide range of tech jobs from Tech Support to Software Testing. Also, with a little bit patience you will have no problems editing the hosts file as described above without access denied errors. Then it's pretty annoying that I have to spend even more time disabling these measures, and even if I appearantly have, they are still there. What am I missing here, in order to make my user an actual administrator and not just a regular user with some fancy label in user accounts? If you wish to thank me, please do so by as she is in a battle against Cancer. It's a built-in safety feature. Here is the quick tutorial on how to manage or edit hosts file in Windows 10 C drive.
But, this tutorial is only for Windows operating system, because most of the users in the World have using it. Therefore, the modification of hosts file should be initiated in a very careful manner to prevent file damage. Windows 10 was not designed to run with a full time admin account. In my case, I have saved it in the Documents folder. Simply download the following zip file that includes two registry files. Would you like to save in My Documents folder instead? This patented repair process uses a database of 25 million components that can replace any damaged or missing file on user's computer. Run As Administrator with Administrator enabled doesn't help Windows 7, 64bit machine, btw.
If you still cannot edit these files, you may want to look into whether or not you have malware or viruses installed on the computer. It will scan all System Files and Registry Keys that have been damaged by security threats. Contact the administrator to obtain permission. Any help will be highly appreciated. Hitmanpro, seemed to find other stuff and deleted them. Please try and reply if its work Its working for me I am using Windows 8, and I tested on Windows 7.
Any ideas other than a complete wipe and rebuild? You can actually edit the host file just by editing it in notepad. Long standing best practice is to run with only the minimum rights needed to do the job. I can live without those, as they are merely dumbed down versions of the actual desktop programs. You can also use to edit hosts file. You can now hopefully write and save the Windows hosts file directly without further problems Method 3: Quick Workaround To Edit The Hosts File You can also simply create a copy of the hosts file. It works, although I'll have to manually browse to a file every time? To solve this little problem, here are 5 ways to modify it.