And for 10.5, dscl replaces niutil

Nov 14, 2007 22:52

Adduser for Mac OS X = dscl + niutil + nicl

For Mac OS X 10.5 aka Leopard,

niutil -appendprop . /groups/admin users yourusernamehere will not work any more as even the command line versions of niutil, netinfo etc are gone. Its dscl, baby.

dscl / -append /Groups/admin GroupMembership yourusernamehere to make your username be added to the Admin group.

Man dscl
How to: Add a user from the OS X command line, works with Leopard! has all command options explained in clear English - whenever you'll need to create users, change or add them to groups, change passwords... everything that adduser or niutil would do, dscl does.

geek, macosx

Previous post Next post
Up