Users management


id — return user identity

who — display who is logged in

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


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/ -n [AD_username]


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…