Why is my sudo not working?

Discussion in 'Mac Basics and Help' started by malleat1, Nov 26, 2010.

  1. malleat1 macrumors newbie

    Sep 18, 2010

    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
  2. wrldwzrd89 macrumors G5


    Jun 6, 2003
    Solon, OH
    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.
  3. malleat1 thread starter macrumors newbie

    Sep 18, 2010
    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"!!

Share This Page