Users management

Tools

id — return user identity

who — display who is logged in

dscacheutil — gather information, statistics and initiate queries to the Directory Service cache.

Tasks

List real users:

dscl . list /Users | grep -v '_'

Get info on a user:

dscacheutil -q user -a name Empfang

Set a user as mobile (offline account):

sudo /System/Library/CoreServices/ManagedClient.app/Contents/Resources/createmobileaccount -n [AD_username]

Jokes

Change the full name of a user using the GUI

  1. System preferences / Users & Groups, unlock it
  2. Control-click on the user !! -> “Advanced Options”
  3. change the damn name…