This is basically a user access control function which restricts you from changing system files or creating new ones in system directories. It is done for the safety of your own computer so important system files don’t get changed and you preserve the integrity of the operating system. This has been the case for all versions of Windows.

However, there are instances where you want to deliberately make some changes to some system files and this error can get problematic. We will go through all the steps needed to make sure you get your work done without the annoying error message popping up. This error is also known to pop up when you try to change the “host” files present in the System32 directory. Note: Malware and virus are known to make changes to the host file. Make sure that you are virus free whenever you are editing the file.

Solution: Using ‘Run as Administrator’

We will open the Notepad application and run it using the ‘Run as administrator command’. This command will enable administrator privileges and open the application in an elevated mode. Do note that you are required to use an administrator account to use this solution.

  Note: If you cannot edit the host files even after performing the above solution, you should check if you have any antivirus enabled on your computer. Third party antivirus software makes sure that you cannot edit any system files even with administrator privileges. Same goes for the firewall. Make sure they are disabled temporarily and try with the solution again.

If you cannot still access the file under discussion, make sure that the ‘Read-only’ option is unchecked in the file’s properties. You can also take ownership of the file, edit it, and change the ownership back. Take a look at following article. Follow the same method on how to take ownership. You Require Permission from TrustedInstaller

FIX: Destination Folder Access Denied Windows 10Fix: Access Denied or Permission Issues with Autorun.infHow to Fix Access Denied for User ‘root’@’localhost’ Error on MySQLHow to Fix Windows Activation Error 0xc004f025 ‘Access Denied’ Fix  Notepad Access Denied - 86Fix  Notepad Access Denied - 40Fix  Notepad Access Denied - 35Fix  Notepad Access Denied - 80Fix  Notepad Access Denied - 37Fix  Notepad Access Denied - 53