Q: How do I log off a user that has forgotten to logout from a shared computer?
 
A: This example showcases the Gentle logoff-procedure found in the article Log Off Your Kids at http://sjrnet.net/linux_articles/Tip_LogOffKids/LogOffYourKids.shtml.
 
The procedure assumes RHEL, but should work with any linux-distro, eg CentOS.
 
Assumptions: Computer Bookable is locked with a passworded screensaver and the user is nowhere to be found. Computer Processor is available for logon.
  1. Logon to Processor as root.
  2. Open a terminal.
  3. Ssh to Bookable as root: ssh root@bookable
  4. In the terminal window (while ssh:ed on Bookable), enter: ps -ef|grep username|grep saver
  5. Note the process-id (PID).
  6. Enter: kill <PID-number>
  7. Check Bookable, the screensaver should be off now and the users desktop shown.
  8. Save anything unsaved and close all running programs.
  9. Log off Bookable.
  10. Mail the user about not forgetting to logoff the session when done.

Also see Linux Kill and Logout Users.

Stop Spam Harvesters, Join Project Honey Pot

 

Get a free SSL certificate!

 

The leading nonprofit defending digital privacy, free speech, and innovation.

 

The Linux Foundation provides a neutral, trusted hub for developers and organizations to code, manage, and scale open technology projects and ecosystems.

 

Kubuntu is an operating system built by a worldwide community of developers, testers, supporters and translators.

 

 43ef5c89 CanonicalUbuntudarktext