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
OS X - Operating System General OS operation information and support

OS 10.5 - Need help with editing my hosts file


Post Reply New Thread Subscribe

 
Thread Tools
BlackOut117

 
Member Since: Aug 26, 2008
Posts: 3
BlackOut117 is on a distinguished road

BlackOut117 is offline
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?
QUOTE Thanks
shadco

 
Member Since: Jul 30, 2008
Posts: 41
shadco is on a distinguished road
Mac Specs: Macbook Pro 2.0 I7, Macbook Pro 2.4Ghz 15, Macbook 2.16Ghz, Imac 3.2GHz 21.5, Macbook Pro 13 2.23Ghz

shadco is offline
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
QUOTE Thanks
rman

 
rman's Avatar
 
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,591
rman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud of
Mac 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

rman is offline
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!
QUOTE Thanks
cradom

 
cradom's Avatar
 
Member Since: Feb 14, 2004
Location: Nederland, Texas
Posts: 2,885
cradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud ofcradom has much to be proud of
Mac Specs: 21in iMac core2 Duo- 13in macbook - 10.9 on both

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

Craig Domingue - resident redneck.
QUOTE Thanks
BlackOut117

 
Member Since: Aug 26, 2008
Posts: 3
BlackOut117 is on a distinguished road

BlackOut117 is offline
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!
QUOTE Thanks

Post Reply New Thread Subscribe


« OSX Shuts Down Automatically | Desktop icons display in B&W »
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
PDF file probs Malc50 Switcher Hangout 5 04-10-2008 06:50 PM
Windows 2003 File Server & Quark kegwell OS X - Operating System 0 01-15-2007 02:35 PM
Unix Executable File problem fender1100 OS X - Apps and Games 9 01-07-2007 06:20 AM
File icons not displaying properly mrgee OS X - Operating System 7 09-10-2005 06:49 AM
File copying frustrations - help? djmitch Switcher Hangout 5 06-27-2005 01:23 AM

All times are GMT -4. The time now is 05:32 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?