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

eldan88

macrumors newbie
Original poster
Sep 22, 2011
10
0
Hi,

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!
 
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.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.