Solution:
In OSX 10.10+ use "sysadminctl" instead of "dscl"
This is killing me: Users that i created using Terminal commands don't allow their passwords to be changed in the System Settings. The "change password" button is not greyed out, but after filling in the old and new passwords I get an error message "Your system administrator does not allow you to change the password".
User accounts that are created using the GUI don't have this problem. The exact commands I am using to create the accounts are:
- dscl . create /Users/$username
- dscl . create /Users/$username UserShell /bin/bash
- dscl . create /Users/$username RealName "Real Name"
- dscl . create /Users/$username UniqueID $uid
- dscl . create /Users/$username PrimaryGroupID 20
- dscl . create /Users/$username NFSHomeDirectory /Users/$username
- dscl . passwd /Users/$username "password"
I tried using a Profile (.mobileconfig) to hopefully overwrite this somehow but it didn't work.
Then I found the "pwpolicy" command and was hopeful that this was the source of my headache, but apparently not. I was able to get a pop-up at first login to change password but when I enter a new password the input mask just mocks me with its "error-WIGGLE" x'( I also set "canModifyPasswordforSelf=1" (I THOUGHT THIS WAS IT), but nada. It doesn't work. The man page also shows many of the commands to be DEPRECATED. Setting the pwpoliy User to "isAdmin=1" also doesn't work.
So now im pretty much helpless. Google isn't really returning any more useful Info.
If you know ANYTHING or have ANY ideas what i could try please let me know.
Thanks so much for any help! Have a wonderful day!