Ooops
On Leopard, the same command works, but it outputs the following message and you have to enter the old password:
For some reason Lion forgets to ask for authentication when someone changes a password. Hacking a Mac is as easy as typing "$ dscl localhost -passwd /Search/Users/bob" into Terminal, the Mac command line program. You can then put your own password in and control the machine.
Code:
dscl localhost -passwd /Search/Users/bob New Password: Permission denied. Please enter user's old password:
Comment