cant find the group admin

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

  1. emdesigns macrumors newbie


    Aug 20, 2015
    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

    to all
  2. chrfr macrumors 604

    Jul 11, 2009
    your syntax is wrong... it's /Groups
    dseditgroup is the better way to add a user to a group:

    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