Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

What is the Ubuntu equivalent of this interface?

How to log off a user in windows 7

I am looking for a user-friendly method that the owner of a computer can use to log off other users without having to restart.

The case I'm concerned about is of the beginner-level user who needs administrative control over the computer because they are the owner, but probably isn't concerned with most of the tasks we would usually associate with system administration.

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

I don't know of any place where this is plumbed through to the GUI.

sudo pkill -u <username> 

is really the simple way to do it, followed by

sudo pkill -KILL -u <username>

a bit later if it doesn't all shut down like it should. If the "non-technical" user in question isn't capable of remembering that, a script to prompt for a username and then run those commands would be about five lines of code and could have a link to it placed somewhere convenient.

share|improve this answer
    
What if I am trying to disconnect a session I initiated? Will this not kill my other current processes including the terminal that I am currently using? –  Lord Loh. Oct 30 '13 at 23:05
add comment

From an Administration point of view, there really is no better GUI than your terminal

Terminal command

share|improve this answer
    
This is true with regard to system administration proper, but the case I'm concerned about is of the beginner-level user who is the "administrator" of their home desktop computer merely by necessity. This type of user should have control over the computer because they are the owner, but probably doesn't perform most of the tasks we would usually associate with system administration. –  ændrük Jul 13 '11 at 20:27
1  
Killing all user process with SIGKILL, can leave to unconsistent user data, because processes do not have the chance to close gracefully. Never use SIGKILL without have tried other less dangerous signal before. –  enzotib Jul 13 '11 at 20:49
    
If wojox runs this, will the current terminal dot die as well? –  Lord Loh. Oct 30 '13 at 23:04
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.