Results 1 to 8 of 8
  1. #1


    Member Since
    Aug 26, 2008
    Posts
    3
    Need help with editing my hosts file
    Hi,
    I'm trying to edit my etc/hosts file, but I just can't seem to be able to do it. I go into terminal, and type "sudo etc/hosts" and then it asks me for my password. I assume it means the same password it asks for when I install stuff, but the problem is I can't type anything in. The keyboard is unresponsive when I'm trying to type it in, and the only button that works is enter, which earns me a "sorry, try again" message.
    Does anybody know what's wrong? Can anybody help me?

  2. #2


    Member Since
    Jul 30, 2008
    Posts
    41
    Specs:
    Macbook Pro 2.0 I7, Macbook Pro 2.4Ghz 15, Macbook 2.16Ghz, Imac 3.2GHz 21.5, Macbook Pro 13 2.23Ghz
    Quote Originally Posted by BlackOut117 View Post
    Hi,
    I'm trying to edit my etc/hosts file, but I just can't seem to be able to do it. I go into terminal, and type "sudo etc/hosts" and then it asks me for my password. I assume it means the same password it asks for when I install stuff, but the problem is I can't type anything in. The keyboard is unresponsive when I'm trying to type it in, and the only button that works is enter, which earns me a "sorry, try again" message.
    Does anybody know what's wrong? Can anybody help me?
    Well let's see

    sudo is not an editor it is used to get root access

    and etc/hosts is an invalid path

    try this

    shad-macbook-pro:~ shad$ sudo su
    sh-3.2# nano /etc/hosts
    Shad
    Help is on the way a government team of experts Is a'rushin' to your aid... -- Stephen Stills
    08 MB, 08 MBP, 010 MBP, 010 Imac, 011 MBP

  3. #3

    rman's Avatar
    Member Since
    Dec 24, 2002
    Location
    Los Angeles, California
    Posts
    12,584
    Specs:
    2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi
    Cool
    If nano is an editor, then:

    sudo nano /etc/hosts
    Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!

  4. #4

    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Groves, Texas
    Posts
    4,573
    Specs:
    21in. iMac 10.11 --- HP Linux Mint 18
    When you type your password, you wont see anything, but it's being inputted.
    Type your password (yes your login password) and press enter. Sudo doesn't give feedback like **** but it's working.
    One manís theology is another manís belly laugh.
    -Lazarus Long

  5. #5


    Member Since
    Aug 26, 2008
    Posts
    3
    Quote Originally Posted by cradom View Post
    When you type your password, you wont see anything, but it's being inputted.
    Type your password (yes your login password) and press enter. Sudo doesn't give feedback like **** but it's working.
    Thank you so much!

  6. #6


    Member Since
    Nov 23, 2010
    Posts
    1
    Unhappy Can't type in Terminal
    I have Mac OS X 10.7.5
    I need to edit my localhost file.
    After I enter
    sudo nano /etc/hosts
    It's asking me to type a password.
    And when I am typing the password it wont type at all. Looks like my keyboard is not working.
    It's stay still with the sign: To proceed, enter your password, or type Ctrl-C to abort.

    Password:

    but when I type ''exit" - it works.
    How can I type my password?
    Help me please

  7. #7

    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Groves, Texas
    Posts
    4,573
    Specs:
    21in. iMac 10.11 --- HP Linux Mint 18
    Um... look at the two posts above yours.
    One manís theology is another manís belly laugh.
    -Lazarus Long

  8. #8


    Member Since
    Dec 11, 2010
    Location
    Chicago
    Posts
    1,490
    Specs:
    late 2012 mini w/SSD
    Quote Originally Posted by mikegoood View Post
    I need to edit my localhost file.
    Lots of people screw up their internet access this way. Since you don't seem to know much about the unix underpinnings of OS X (you don't know how to edit, or enter the correct password, or what the file reference means - /etc/hosts), maybe you should tell us what you want to do before doing anything bad...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. etc/hosts file gone . .
    By wales321 in forum Switcher Hangout
    Replies: 2
    Last Post: 11-14-2012, 09:00 AM
  2. editing etc/hosts/ file on Snow Leopard
    By galan05 in forum OS X - Operating System
    Replies: 2
    Last Post: 03-19-2010, 01:28 PM
  3. hosts file
    By afcbob in forum OS X - Operating System
    Replies: 2
    Last Post: 11-29-2009, 12:21 PM
  4. editing hosts file on OSx
    By blackwaterdev in forum Switcher Hangout
    Replies: 2
    Last Post: 02-24-2005, 08:51 PM
  5. Where is the hosts file?
    By Stoomie in forum OS X - Operating System
    Replies: 3
    Last Post: 08-10-2004, 03:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •