Adding data to the Hosts file

Joined
Mar 7, 2011
Messages
10
Reaction score
0
Points
1
Location
Billericay, UK
Your Mac's Specs
Looking after father in laws Apple iMac 27" All-In-One Desktop PC 2.8Ghz
I am trying to add data to the 'hosts' file. When I paste this sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/hosts - into the 'terminal' I am asked for a password I don't ever remember setting. After resetting the password using the OS install CD I went back to the 'terminal' and typed in the password. Nothing appeared on the screen when I typed the password and after pressing 'enter' a message said it was the wrong password. Should at least some characters appear as I type the password or should the password be preceeded with another character or word?
The machine is a month old mac pro belonging to my 87 year old father in law who uses it with Photoshop. I am a Windows follower and know very little about OS X please help.
 
Joined
Feb 26, 2010
Messages
2,116
Reaction score
123
Points
63
Location
Rocky Mountain High, Colorado
Your Mac's Specs
1.8 GHz i7 MBA 11" OSX 10.8.2
When you sudo - you won't see anything echoed back in the password prompt. If the command works - it will respond - otherwise you will get the wrong password message. One thing you can do is do a
Code:
sudo ls
Put in the password. If it works you will get a directory listing. Then you have a few minutes to do other sudo commands without having to put in the password. The sudo password is usually the same password as the login password - not the root password.
 
OP
O
Joined
Mar 7, 2011
Messages
10
Reaction score
0
Points
1
Location
Billericay, UK
Your Mac's Specs
Looking after father in laws Apple iMac 27" All-In-One Desktop PC 2.8Ghz
Sudo

Thank you IvanLasston it worked this time with the same (I'm sure) password I used before. It is a bit unsettling not to see anything happen when you type your password in under Sudo. My problem is now is I have to type in a password when I switch on the computer. There also appears to be the option to sign in someone else! I think this happened when I changed the passwords.
How do I get back to sarting the computer without having to login at all?
Thanks, Don
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top