Support Questions
Find answers, ask questions, and share your expertise

When I execute "echo '{Host-Name} sandbox.hortonworks.com' | tee -a /c/Windows/System32/Drivers/etc/hosts" I always get a permission denied error.

New Contributor
 
3 REPLIES 3

Super Collaborator

Hi @Judith Wewerka , can you try running the above command using sudo. Also, do not forget to replace the {Host-Name} with your actual hostname. Try this:

echo'{Host-Name} sandbox.hortonworks.com'| sudo tee -a /c/Windows/System32/Drivers/etc/hosts

New Contributor

@mrizvi : Yes, I replaced the Host-Name and with sudo it tells me command not found.

Super Collaborator

@Judith Wewerka , can you follow these steps:

  • Type Notepad in the search field and then right click Notepad and select 'Run as Administrator'
  • Now open the following c:\Windows\System32\Drivers\etc\hosts
  • Add your hostname in this format - {Host-Name} sandbox.hortonworks.com
  • Lastly, save your changes.

We will test that command in the tutorial and will make necessary changes.