Monday, December 1, 2008

Enable access rights in ARD

Run this from the Unix command in ARD as root. It will set the user's access privileges in ARD to "all".

cd /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/
^M
./kickstart -configure -access -on -users [USER SHORT NAME] -privs -all

OS X: create user account from command line and ARD

For Tiger:

Run the following as "root" in ARD:

dscl / -create /Users/toddharris
dscl / -create /Users/toddharris UserShell /bin/bash
dscl / -create /Users/toddharris RealName "Dr. Todd Harris"
dscl / -create /Users/toddharris UniqueID 503
dscl / -create /Users/toddharris PrimaryGroupID 1000
dscl / -create /Users/toddharris NFSHomeDirectory /Local/Users/toddharris
dscl / -passwd /Users/toddharris PASSWORD
dscl / -append /Groups/admin GroupMembership toddharris

Replace "toddharris" with the user name and "PASSWORD" with the password you want to use.

For Leopard use:

dscl . -create /Users/toddharris
dscl . -create /Users/toddharris UserShell /bin/bash
dscl . -create /Users/toddharris RealName "Dr. Todd Harris"
dscl . -create /Users/toddharris UniqueID 503
dscl . -create /Users/toddharris PrimaryGroupID 1000
dscl . -create /Users/toddharris NFSHomeDirectory /Local/Users/toddharris
dscl . -passwd /Users/toddharris PASSWORD
dscl . -append /Groups/admin GroupMembership toddharris