Benches Uncategorized

8

remotely change admin account password

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

We have about 150 plus Macs that are in about 15 different buildings around campus that we maintain. Each one has a local admin account for desktop support personnel to log into. We would like to change the password on that account without going around and touching each computer. Can this be done in ARD with the 'Send Unix' command? If yes, how?

Many thanks in advance...

8 replies

Sign in or join Beachball Help to reply.

  1. 0

    Ken_Edgar

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    dscl . -passwd /Users/username password

    Try that out... it comes in handy if for some reason you don't have an admin account on a machine that you have access to in ARD. You can change user account passwords (including admin accounts) and login.

  2. 0

    Rebus

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Can seem to get it to work...

  3. 0

    Templeton Peck

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    send this easier command:

    passwd
    username

    newpassword

    newpassword

  4. 0

    Ken_Edgar

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    that suggestion doesn't seem to work in Leopard atleast... If this doesn't work, try copying my entry above and pasting it into ARD send unix command. It needs to be run as root as well... I forgot to say that.

  5. 0

    Rebus

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Got it to work...

    Needed to send the command as Root

    I do have some question though...

    what is dscl

    How is ARD executing commands if Root user is not enabled and even if it is enabled, how is it authenticating?

  6. 0

    Templeton Peck

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    *"that suggestion doesn't seem to work in Leopard atleast"*

    I just sent the command to a Leopard server running 10.5.4 and it worked fine.

  7. 0

    Ken_Edgar

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    sorry bro, I'll have to try it again. Thanks

  8. 0

    Ken_Edgar

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    dscl = Directory Service command line utility

    from terminal if you type "man dscl", you will get the manpage for it... basically it will tell you what it is for, and all the options you can use. This comes in very handy for many other things as well...

    This will show who is in the admin group:

    dscl . -read /Groups/admin GroupMembership

    This will remove a user from the admin group:

    dscl . -delete /Groups/admin GroupMebership username

    This will add a user to a group (change groupname and user):

    dscl . -append /Groups/groupname GroupMembership user

    This will show group membership for a user:

    id -Gn user