views:

1396

answers:

1

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?

+2  A: 

This forum post has a bash script for OSX that should do the trick. It takes a username as an argument and logs off that user.

I've not tried it, so your mileage may vary. But it looks like it suits your needs. What exactly are you trying to achieve?

andrewdotnich