Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do i go about changing the domain password for a user? Assuming i'm running a admin account, is there a command or method to change a users password without a GUI?

Also, previous password is unknown so sudo passwd doesn' work (it requires me to have the old passwod).

share|improve this question
up vote 2 down vote accepted

Being an admin (or root) on the local computer is irrelevant to the domain controller -- in order to reset a domain user's password, you need to authenticate to the domain controller using domain admin credentials. You can do this from OS X with the dscl command. Here's an example of resetting the password for the user "fred" in the LDAP domain named "", by authenticating as the domain admin "diradmin":

dscl -u diradmin -p /LDAPv3/ -passwd /Users/fred

Note that -p tells it to prompt for the domain admin's password; -P "password" would specify the admin's password on the command line, which is not recommended for security reasons. Also, if you're not sure what the appropriate nodename for the domain is (/LDAPv3/ in the above example), check the user's meta node location:

dscl /Search -read /Users/fred | grep "^AppleMetaNodeLocation"
share|improve this answer
Forgot this thread, i solved it in a similar manner :) Apple should learn a thing or two about standards tho ._. – Torxed May 14 '13 at 5:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .