Reset password for terminal on snow leapoard

Discussion in 'iMac' started by eldan88, Sep 22, 2011.

  1. eldan88 macrumors newbie

    Sep 22, 2011

    I set up apache and php on my mac os x snow leopard a few months ago, and forgot my password to run sudo commands on terminal. It keeps on asking me for a password when try to run them. How can I reset my password for terminal? Thanks!
  2. derbothaus, Sep 22, 2011
    Last edited: Sep 22, 2011

    derbothaus macrumors 601


    Jul 17, 2010
    passwd currentusername

    But you'll need the current password you don't have. Any admin user should have sudo rights. Are you admin on the box?

    If you need to change an admin password without an admin password you need to have physical access to the box and use the restore DVD. Or enable root and use root but that has it's own problems.

Share This Page