Feature Request: password change using masterkey

Sorry, docs don't seem to have an example syntax for this...

How do I change a password when I have the masterkey but I don't know the old password?