Ok Let's say you're logged in but you forgot your password (you can probably do this on verbose/single user mode as well). Here's how I change that password - AS LONG AS ROOT HASN'T BEEN ENABLED YET:
Go to a terminal (or maybe in verbose mode you are in a terminal already (bash) so you can just type these in). Terminal is located in /Applications/Utilities/Terminal.app
Now type in these commands [key] denotes to press the key:
su[enter]
Password:[enter]
root#: passwd you're username (short name)
Changing you're username (short name)'s password.
New Password: Enter_the_password_you_want[enter]
Retype Password: Enter_the_password_you_want[enter]
Congrats you just changed it:
Why this works? You haven't enabled root so root has no password, that's why su works without a password. Now you can type in passwd then the username to change its password, w/out having to know it. Root has the ability to change your password no matter what.
This is horrible security, what you want to do is enable root and make the password something instead of leaving it blank. I wonder if Apple knows about this? -- Bad hacker tip!
Go to a terminal (or maybe in verbose mode you are in a terminal already (bash) so you can just type these in). Terminal is located in /Applications/Utilities/Terminal.app
Now type in these commands [key] denotes to press the key:
su[enter]
Password:[enter]
root#: passwd you're username (short name)
Changing you're username (short name)'s password.
New Password: Enter_the_password_you_want[enter]
Retype Password: Enter_the_password_you_want[enter]
Congrats you just changed it:
Why this works? You haven't enabled root so root has no password, that's why su works without a password. Now you can type in passwd then the username to change its password, w/out having to know it. Root has the ability to change your password no matter what.
This is horrible security, what you want to do is enable root and make the password something instead of leaving it blank. I wonder if Apple knows about this? -- Bad hacker tip!