-1

I know the admin password. What script I need to use to change password and enable Remote Login and Remote Management

3

Change Password

You can change a user's password from the command line using the dscl tool:

dscl . -passwd /Users/cedge

See krypted's Mac OS X: Changing Passwords from the Command Line.

Remote Login and Management

See the related question Command Line - Enable Remote Login and Remote Management:

To enable remote login for members of the admin group enter:

sudo systemsetup -setremotelogin on

To enable remote management for admin users enter:

sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -users admin -privs -all -restart -agent -menu

You must log in to answer this question.

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