In the text editor, select File Open and navigate to the HOST file location at C: Windows System32 drivers etc. Copy and paste the path to the HOSTS file into the File name field to quickly find the folder without having to browse for it manually.
Modify your hosts file. Last updated on: 2019-07-23. Authored by: Rackspace SupportModifying your hosts file enables you to override the domain name system(DNS) for a domain on a specific machine.is useful when you want to test your site without the test link prior to going live with SSL,verify that an alias site works prior to DNS changes, and for other DNS-related reasons.For information about changing your DNS settings, see.Modifying your hosts file causes your local machine to look directly atthe Internet Protocol (IP) address that you specify. Rackspace offersto assist withthe handling of these resources.Modifying the hosts file involves adding two entries to it. Each entrycontains the IP address to which you want the site to resolve and a version ofthe Internet address.
I have recently gotten a new computer and have upgraded to Windows 10 (though I suspect this is a problem in other versions as well.)My user is an administrator. I have set UAC to the lowest level. I have changed owner to my user on the whole c: disk (including the hosts file.)Still, when I run notepad c:windowssystem32driversetchosts, edit the file, and try to save, it won't let me.
If I run notepad as administrator first, then open the file, I can save without problems.But, why, after the measurements I have taken, isn't my user regarded as an administrator user? 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)?Updated question: When you have a user that is an Administrator, why is this user's permissions not affected by the security group Administrators, but rather the security group Users?
These limitations are put in place to keep people from 'accidentally' infesting a system with malicious code. Plus, any IT professional that runs his/her PC as administrator probably has administrative access to other systems and can easily generate an RGE (Resume Generating Event).
If I had a consultant or a JR admin ask me this, I would personally make sure that every device he/she has access to has extremely prohibitive rights and only let him/her run Citrix apps that I have personally vetted.– user485501 Aug 19 '15 at 0:25. The many people above me laid it out pretty clearly:. Copy to Desktop, Edit with Notepad and Save, Copy Back Which Would Overwrite the Previous Host File.
Disable UAC. Launch cmd as an Administrator and than Type In 'notepad.' . Use the Local Users and Group Manager (Ill Advised)Option one on my list is how people have been doing it for years. There's only one UAC prompt for the return copy.
It has been done like this since the Vista-era.As what was explained to you earlier, you are an Administrator user. You can go through the effort to change this but it comes with a lot of risks. To make a comparison: you do not applications on Linux with 'root' regularly but instead elevate with the 'su' command or by logging in as 'root.' The problem is actually very simple: in Windows 10 the hosts file is read-only by default. When you logon, you get handed a 'Kerberos' token which defines your user as both administrator and user - regardless of what control panel tells you.You can use local user manager (C:windowssystem32lusrmgr.msc) to remove yourself from the users group and only be present in the administrators group - but this may cause more hassle than its worth.Another hacky-style approach is to launch cmd as an admin and then 'notepad C.' You could always take this one step further and launch cmd as an admin, from cmd - you can launch 'taskmgr' and then kill and re-open 'explorer.exe'. UAC is already disabled.
As an IT professional I don't knowingly infect myself with malware. The thing is, which is really annoying, that after setting myself as administrator, after disabling UAC, after making myself owner of the file, I am not allowed to edit a file on my computer without having to take an uneccessary detour.
When I doubleclick a file, or save a file, I have already made my decision, I don't need any second-guessing from Windows, but even though I have taken measures not to, it still seems to happen.–Aug 18 '15 at 14:11.
Comments are closed.
|
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |