Re: Possible to log out a KDE-user as root?



On Fri, 15 Sep 2006, in the Usenet newsgroup alt.os.linux, in article
<eedmg0$e3f$1@xxxxxxxxxxxxxx>, Wim Cossement wrote:

I was wondering if root can log out a user in his/her KDE session, or at
least switch to the locked session to do this because lots of times
users 'forget' to log out so this leaves one graphical session in use.

Sure - dozens of ways. Anywhere from su'ing into their account and blowing
off any screen saver that has locked the console, then closing each
application before logging them off (and sending a nice email asking them
not to do that)... on up to killing off their login shell, and letting
the chips fall where they may. (For that, use 'ps afuwx' and find the first
process with their username, and then kill that).

I know it's possible to start another one on the same machine but I'd
rather not do that because sometimes they go away for a few days so I'd
like a second KDE login available.

If your users are using the GUI login, teach them to log out at the end
of the day - restarting next morning doesn't take that much time.

Any pointers?

About 15 years ago, I have to do something to a workstation in a common room,
so I wander down there on break time to avoid disturbing to many users. I
walk into the room and ask "Which one is peachpit?" The room admin points
at one computer. Darn - screen locked. I jump on another system, and telnet
into peachpit, become root, and try to kill the screen saver. Hmmm, it's
still there. Oh well, run 'ps -afuwx' and kill the user's login... nothing.
About this time, one of the interns from the back of the room is trying to
get the room admin's attention - something is going wrong with her computer.
"Not now, we're busy". (Can you see it coming?) All right, So I begin killing
processes wholesale, trying to bring the system down gently. Again, the
intern interrupts us - "something is killing all the processes on my computer
'peachpit'"... Say what??? Next day, _every_ computer had a label on the
CPU, monitor, and keyboard identifying it by name and IP.

Old guy
.



Relevant Pages

  • User A and B on same desktop. User B cant kill U-A tasks for an
    ... B can't launch the same app when they log into the same PC. ... User B also dosen't see the application that A started under Task Manager so ... I have to log back in as User A, then kill the app before ... any other user can login to use the app. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: using killall from the background
    ... out of my login session. ... For some reason it just won't kill the link ... startup and the script is owned, run by, and in the root group. ... this was all done with an install script. ...
    (comp.os.linux.misc)
  • Re: Last user name
    ... Roanoke, VA 24012 ... I'm trying to kill the last user name displaying in the login box upon ...
    (microsoft.public.windows.server.active_directory)
  • Re: FC6 kill X Window
    ... How can I kill X Window? ... Ctl+Alt+BackSpace results in logout and login in ...
    (Fedora)