cant find the group admin

Discussion in 'Mac Pro' started by emdesigns, Aug 20, 2015.

  1. emdesigns macrumors newbie

    emdesigns

    Joined:
    Aug 20, 2015
    Location:
    Portugal,porto
    #1
    Hello to all

    I have a Mac pro

    I recently forgot the password for my admin account i am trying to do this

    mount - uw /

    and then

    dscl . -append /Group/admin GroupMembership Username

    But the computer tells me that that directory doesnt exist

    Can any one let me know how to find the path to change my normal account to admin

    Regards
    to all
     
  2. chrfr macrumors 603

    Joined:
    Jul 11, 2009
    #2
    your syntax is wrong... it's /Groups
    however:
    dseditgroup is the better way to add a user to a group:
    https://managingosx.wordpress.com/2010/01/14/add-a-user-to-the-admin-group-via-command-line-3-0/

    The problem with dscl append is that it will repeatedly add a user to a group, so the user can end up as a group member multiple times. dseditgroup checks the existing membership and adds the user only if the user isn't already a member.
     

Share This Page