Monday 22 October 2012

ARD Unix code change passwords local account

To change a local user password through the Apple Remote Desktop unix send feature

use this just replace the 
Username x2
NewPassword x2
OldPassword x1


dscl . -passwd /Users/UserName NewPassword
security set-keychain-password -o OldPassword -p NewPassword /Users/UserName/Library/Keychains/login.keychain

this will change the local user password AND the keychain password