dscl -u adminusername -P adminpassword localhost -passwd NetInfo/Users/shortname oldpassword newpassword
Though experience is an asset, the more our knowledge-base grows, the less our capacity to recall the details of some of our more dissonant troubleshooting conquests, thus the need to document these for our own purposes. Selfless giants we are, we offer these for any—nay—for ALL pilgrims seeking to bask in the warmth of this digital beacon. G-Files normally resides at it's official site (spectrumnetworking.com) but parking here while webhost & I address a few back-end issues.
Thursday, December 29, 2005
Remotely change Admin password
This can be done via either ssh-ing into the target machine, or by using Apple Remote Desktop’s “Send UNIX” command when & if, God forbid, you need to change the Admin password. Of course, replace the values in the brackets with your own usernames, passwords, shortnames, etc.
dscl -u adminusername -P adminpassword localhost -passwd NetInfo/Users/shortname oldpassword newpassword
dscl -u adminusername -P adminpassword localhost -passwd NetInfo/Users/shortname oldpassword newpassword
Labels:
unix
Subscribe to:
Comments (Atom)
Followers
g-file past archives...
about me
- Mike
- 10 Years in Advertising (Account Exec), and 14 Years in I.T./System Administration (multi-platform, but specializing on the Mac platform).