Gracefully logging off another user.

Derek Broughton news at
Tue Nov 11 21:16:55 UTC 2008

Colin Murphy wrote:

> What is the most graceful way, as a super user, to log out another
> user closing all of their processes and ending their session?
I'm pretty sure I've seen this done with dcop.

# sudo dcop --user USERNAME ksmserver default logout 0 0 0

(where USERNAME is the user you want to kill).  I haven't a clue what
the rest of that does (I just googled - knowing that you'd need to use
dcop helps with that :-) ), except that ksmserver is definitely the right

More information about the ubuntu-users mailing list