13 Replies Latest reply: Sep 7, 2015 3:37 PM by cdhw
appleaka Level 1 Level 1 (20 points)
I am a maintained account (non-admin) working in Xcode and i can execute all types of file (iPhone or Mac) with ease, but when i work on a command line code and execute it, it will ask for an admin password. The command line code is VERY basic, just saying stuff on the screen and not editing any (system) files, why is this and how can i prevent it?

iMac Late 2009, Mac OS X (10.6.4), iMac, iPod Touch 2nd Generation w/ OS 3.1.3, iPod Nano 3rd Generation
  • red_menace Level 6 Level 6 (14,940 points)
    From the Xcode 3.2 Release Notes:
    Standard user accounts are be asked to authorize developer privileges with either an admin or developer
    group user and password once per log-in session when debugging or using the performance tools.
    You can add your user to the _developer group. Note that there is also a Developer forum.
  • appleaka Level 1 Level 1 (20 points)
    how would i add my self to the developer group?
  • red_menace Level 6 Level 6 (14,940 points)
    There are several ways to add your user to the *Developer Tools* group. You can use System Preferences > Accounts, a utility such as TinkerTool System, or a Terminal command - I haven't used this method, but it is mentioned in several places (for example the Xcode-users mailing list)
    sudo dscl . append /Groups/_developer GroupMembership <username>
  • etresoft Level 7 Level 7 (27,125 points)
    I think if appleaka could run "sudo", this wouldn't be a problem

    You will have to ask whomever administers your network to add you to that group. As a developer, you really should have admin access to your own machine. That is standard corporate policy at most places, including the very restrictive places that I have worked in.
  • appleaka Level 1 Level 1 (20 points)
    sudo dscl . append /Groups/_developer GroupMembership <username>
    just to clarigy, when you type in <username> at the end, do you type in "<appleaka>" or "appleaka"?
    in other words
    sudo dscl . append /Groups/_developer GroupMembership appleaka
    sudo dscl . append /Groups/_developer GroupMembership <appleaka>
  • red_menace Level 6 Level 6 (14,940 points)
    Just your user name
    sudo dscl . append /Groups/_developer GroupMembership appleaka
    ... and as etresoft mentioned , you will need administrative access (I use a standard account myself, but am the admin).
  • appleaka Level 1 Level 1 (20 points)
    ok thank you everyone for your help, but why does Xcode ask for admin access? when you run a terminal script (or as i found any Mac app made in Xcode) are you editing sytem files, that could end up messing up the computer?
  • etresoft Level 7 Level 7 (27,125 points)
    Xcode normally doesn't ask for admin access. I think it is an artifact of how your managed account is setup. I have a similar setup on my work machine. Although I rarely run Xcode, I do get asked for an admin account password every so often. I think the cause is my Juniper VPN, but I'm not sure.
  • red_menace Level 6 Level 6 (14,940 points)
    There might be something in the Developer Tools that they are concerned about, although I don't know what it would be - maybe something that runs as root in order to do its thing. I normally run from a standard account, and was asked for admin access for that until I added it to the group.
  • Questor Level 1 Level 1 (5 points)

    Unfortunately adding over 300 constantly changing users to almost 300 machines isn't an option for me.

    Instead of adding users to _lpadmin, I can change /etc/cups/cupsd.conf to give mere mortals the power

    to unpause a printer.  If there isn't anything that I can change in my image to make it work including file

    perms, is there something I can do in Workgroup Manager using an AD group to populate _developer?

  • RockabillyJoe Level 1 Level 1 (0 points)

    Bumping this response as I'm in the same boat.  I have an instructor that wants to teach XCode, but it keeps asking for an admin password.  My knee jerk reaction is to create an AD group and give them to run Xcode as an admin.


    So much easier, and quicker to create an AD group . . . .  she teaches in several classrooms and I just don't plain have the time to manually enter 20+ users on all those machines.


    Anyone done the above and can live to tell the tale 

  • Cheryl Tarbox Level 1 Level 1 (30 points)

    I am also facing this issue with Xcode 6.x installed in public labs at university. I have no idea who may want to run and use Xcode in the labs, so have no 'list' to even add to the Developers Group on my master image, or to an AD group (which wouldn't be allowed by the AD admins anyway).


    Open to any other suggestions or workarounds anyone may have found.



  • cdhw Level 4 Level 4 (1,255 points)

    Install a login script:


         #! /bin/bash

      dscl . append /Groups/_developer GroupMembership $1

         exit 0


    on your clients. This will be executed will root privileges and be passed the username logging in as $1. You can use profiles or MCX to set this up, choose your poison.