Results 1 to 3 of 3
  1. #1
    marskarthik
    Guest
    Need to add entry in hosts file
    hi,

    I need to add entry in hosts file, for which it says not permitted message. Looks like i need root access, but i dont know the password for root. I have only one account set on this iMac and tried that password too. Can someone let me know how to add entry on the hosts file or enable root access.

    Karthik
    www.marskarthik.com

  2. #2
    Need to add entry in hosts file
    surfwax95's Avatar
    Member Since
    Aug 27, 2005
    Location
    Fayetteville, AR
    Posts
    2,406
    Specs:
    15" Powerbook G4 24" iMac iPhone 3Gs
    To enable root access you can download a program called PseudoX that let's you open any program as Root (in this case you'd open Finder).

    Or you could do it from the command line by entering:

    $ sudo -s

    This however would limit you to command line and Terminal.
    I try to Command+Shift+/ when I can.
    They're - Their - There | Two - Too - To | You're - Your | MAC - Mac
    I was on the M-F honor roll for October, 2006.

  3. #3
    Need to add entry in hosts file
    fearlessfreap24's Avatar
    Member Since
    Feb 09, 2005
    Location
    Near San Diego, CA
    Posts
    2,339
    Specs:
    MacBook Pro 13" | MacBook Pro 13" | Mac Mini 2GHz C2D
    I AM NOT RESPONSIBLE FOR ANY DAMAGE YOU OR MY INSTRUCTIONS WILL CAUSE

    login as admin user

    open terminal
    type:
    cp /etc/hosts /users/username/desktop/hosts.txt

    go to your desktop and edit teh hosts file and save
    go back to terminal

    type:
    sudo cp /users/username/desktop/hosts.txt /etc/hosts

    it will ask you for a password
    enter the admin password.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How can I add 127.0.0.1 localhost to my etc/hosts file/
    By oxband in forum OS X - Operating System
    Replies: 5
    Last Post: 06-19-2013, 04:30 PM
  2. Hosts entry not working on macbook pro
    By sho-neo in forum Internet, Networking, and Wireless
    Replies: 4
    Last Post: 10-27-2010, 02:41 PM
  3. hosts file
    By afcbob in forum OS X - Operating System
    Replies: 2
    Last Post: 11-29-2009, 12:21 PM
  4. Hosts File
    By traveler09 in forum OS X - Operating System
    Replies: 3
    Last Post: 07-29-2009, 07:59 AM
  5. Replies: 0
    Last Post: 06-13-2009, 09:55 AM

Posting Permissions

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