Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

malleat1

macrumors newbie
Original poster
Sep 18, 2010
3
0
Hello

I'm so sick of MAC OS, I don't know why I keep coming back to it... everything that I do never works :(

For today... I'm logged in as an Admin... and I have no password set for that... (I left it empty)...

I decided that I want to edit my hosts file in the etc directory... I opened the file added few stuff, and when I came to save it it said "sorry you have no privillage to edit this file"... OK! So I decided to try the sudo command, it asks for the password and then nothing happens! It doesn't tell me if my password is wrong, it doesn't tell me if I'm using a wrong command, it returns nothing!

I've tried "sudo open hosts"...? Is this by any chance correct?

How do I debug this to know why I'm not getting a useful feedback?

At least in windows I'd get 0x00832984293 error!!

Thanks :D
HannaH
 
You've run into one of the stranger aspects of Mac OS X - certain things REQUIRE that a password (non-empty) be set on your user account. The sudo command happens to be one of them.
 
Oh man!! You are a STAR!! I've been on this for sooo long...

So really, I do have a good reason to hate MAC!! Absolutely ridiculous... if a password is a must, why not refuse to allow "no password"!!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.