7

In other words:

  1. Log on as Bert (who is an administrator)
  2. Using fast user switching, log on as Ernie (Bert remains logged on)
  3. Switch back to Bert
  4. Bert logs Ernie off

What is the best way to achieve step 4?

Babak
  • 5,178
  • 1
  • 19
  • 14

1 Answers1

4

sudo launchctl bootout user/$(id -u <username>)

Replace <username> with the target user's user name.

Babak
  • 5,178
  • 1
  • 19
  • 14