IT:Apple:iMac:Issues:unknown uid

Situation

Sudo not working.

Trying to edit a file:

sudo nano /usr/sbin/mobile_tfs

Gives

unknown uid

Other symptoms

 Can't access from top right of screen to user settings/preferences

Cause… lost connection to AD. reboot solves the issue.