Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Logout from OS X via the Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Logout from OS X via the Terminal
Authored by: rhowell on Feb 21, '05 10:53:02AM

You can "tell application System Events to log out" by typing Shift-Option-Command-q.

Anyone know of an elegant way to log out another user via Terminal, other than killing his loginwindow, SystemUIServer, or WindowServer (I forget which one actually, and it often leaves his Dock running)?



[ Reply to This | # ]
Logout from OS X via the Terminal
Authored by: bcamp1973 on Feb 21, '05 10:56:19AM

I have the same need. I frequently maintain my parents computer via SSH. They live in another state and it would be nice to be able to log them (or my brother) out of the computer at times. Currently i have to use VNC to do it and that's a pain. It would be so much easier if i could just force all users to log out...



[ Reply to This | # ]
Logout from OS X via the Terminal
Authored by: vortmax on Feb 21, '05 11:38:07AM

As root, you can stop/kill all user processes using "killall -u [username]". It is a nice feature but one needs to be careful as always when stoping other's jobs.



[ Reply to This | # ]