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!
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.