Why is my sudo not working?

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

  1. malleat1 macrumors newbie

    Joined:
    Sep 18, 2010
    #1
    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
     
  2. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #2
    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

    Joined:
    Sep 18, 2010
    #3
    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