New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Apple Desktops Discussion of Apple's desktop machines including Mac Pro, iMac, Power Mac, and mini

iMac - Need to add entry in hosts file


Post Reply New Thread Subscribe

 
Thread Tools
marskarthik
Guest
 
Posts: n/a

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
QUOTE Thanks
surfwax95

 
surfwax95's Avatar
 
Member Since: Aug 27, 2005
Location: Fayetteville, AR
Posts: 2,410
surfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud ofsurfwax95 has much to be proud of
Mac Specs: 15" Powerbook G4 24" iMac iPhone 3Gs

surfwax95 is offline
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.
QUOTE Thanks
fearlessfreap24

 
fearlessfreap24's Avatar
 
Member Since: Feb 09, 2005
Location: Near San Diego, CA
Posts: 2,339
fearlessfreap24 is just really nicefearlessfreap24 is just really nicefearlessfreap24 is just really nicefearlessfreap24 is just really nice
Mac Specs: MacBook Pro 13" | MacBook Pro 13" | Mac Mini 2GHz C2D

fearlessfreap24 is offline
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.

QUOTE Thanks

Post Reply New Thread Subscribe


« Need to share printer...*URGENT* | audio settings »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Not too pleased with new iMac JunMacTech Apple Desktops 14 12-05-2005 07:13 PM
What is the OS X equal to Windows HOSTS file? mynameis OS X - Operating System 3 05-03-2005 10:34 AM
Can you guys open this site? Desolate One OS X - Apps and Games 13 04-29-2005 01:23 PM
editing hosts file on OSx blackwaterdev Switcher Hangout 2 02-24-2005 08:51 PM
Where is the hosts file? Stoomie OS X - Operating System 3 08-10-2004 03:59 PM

All times are GMT -4. The time now is 12:36 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?