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.
As far as I know that should work, but I am getting
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
Code:
sudo dscl localhost -append /Groups/admin GroupMembership [I]adminshortname[/I]
Code:
append: Invalid Path
<dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)
Thanks in advance,
Whit