Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

hiddenpremise

macrumors regular
Original poster
As part of a project I am working on I need to be able to create an administrative user from command line. I can create a standard user just fine using the dscl tool, but for some reason I can't get that user in the admin group.
Code:
sudo dscl localhost -append /Groups/admin GroupMembership [I]adminshortname[/I]
As far as I know that should work, but I am getting
Code:
append: Invalid Path
<dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)
When I try to run it. I am on a 10.5.4 MBP 2.16 Core Duo x 2G x 320G

Thanks in advance,
Whit
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.