Thread: Need to add entry in hosts file
02-21-2006, 03:07 AM #1marskarthikGuestNeed to add entry in hosts file
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.
02-21-2006, 12:07 PM #2
- Member Since
- Aug 27, 2005
- Fayetteville, AR
- 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 - MacI was on the M-F honor roll for October, 2006.
02-21-2006, 04:25 PM #3
- Member Since
- Feb 09, 2005
- Soon to be DFW
- 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
cp /etc/hosts /users/username/desktop/hosts.txt
go to your desktop and edit teh hosts file and save
go back to terminal
sudo cp /users/username/desktop/hosts.txt /etc/hosts
it will ask you for a password
enter the admin password.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By oxband in forum OS X - Operating SystemReplies: 5Last Post: 06-19-2013, 05:30 PM
By sho-neo in forum Internet, Networking, and WirelessReplies: 4Last Post: 10-27-2010, 03:41 PM
By afcbob in forum OS X - Operating SystemReplies: 2Last Post: 11-29-2009, 01:21 PM
By traveler09 in forum OS X - Operating SystemReplies: 3Last Post: 07-29-2009, 08:59 AM
By Constantinople in forum OS X - Apps and GamesReplies: 0Last Post: 06-13-2009, 10:55 AM