10

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.

ændrük
  • 78,496

3 Answers3

11

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.

Perkins
  • 646
1

I use the following command:

 ps aux | grep ssh | grep "$USER@pts/" | tr -s ' '| cut -d ' ' -f2 | sort -n -r | head -n 1 | xargs kill -9
  • sort is used to kill the last connection.
  • replace $USER by the username if needed else it kills the connection of the user who run the command. Cordially Liloulinx
0

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

Terminal command

wojox
  • 11,840