Host file Terminal Password

Discussion in 'macOS' started by DeafRaiders, Nov 29, 2012.

  1. DeafRaiders macrumors regular

    Sep 26, 2012
    Caotbridge (outside Glasgow, UK)

    I need to configure my(mini mac 2009) and my cousins(iMac 27 2011) host file to access our website which is not prepare to launch yet.

    We both don't know the admin passwords via terminal. Is there any other way to access the host file?
  2. rhoydotp macrumors 6502


    Sep 28, 2006
    if you have admin privileges, you should be able to do sudo

    sudo vi /etc/hosts

    if you don't, then you need to "reset" the password using boot from recovery/cd

Share This Page