FedoraForum.org - Fedora Support Forums and Community
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2006
    Location
    Zimbabwe
    Posts
    94

    Lightbulb Force a user to logoff Linux

    Is there any command to force a user out of the system on Fedora Linux? Anything I can install with yum?

  2. #2
    Join Date
    Dec 2004
    Location
    Canada
    Age
    26
    Posts
    9,224
    Depends - For gnome use:
    Code:
    killall -SIGKILL gnome-session
    It's fun. Once, my friend was trying to logon as I SSH'ed from another computer and kept killing the session it was hilarious.
    Firewing1
    [+] My open source software and blog
    [+] Some of my howtos: (for full list, click here)

  3. #3
    Join Date
    Jun 2004
    Location
    lair of a unix daemon
    Posts
    1,155
    basically, kill the user's processes..
    use "who -u" to identify them


    Mat
    Man will always find a difficult means to perform a simple task
    (Rube Goldberg)

    Having fun with Tcl at
    Mat's Playground

  4. #4
    Join Date
    Jun 2004
    Location
    lair of a unix daemon
    Posts
    1,155
    ok, "who -u" will not show you the processes of a user, but rather *where* he's logged in

    e.g.
    Code:
    # who -u
    root     tty1         Jun 14 05:54 00:03        9353
    mat      :0           Jun 14 05:54   ?          9391
    mat      pts/1        Jun 14 05:55   .          9538
    so, root is logged in on terminal 1
    and mat is logged in on X server display :0 and has an terminal window (like xterm or konsole) open.

    now, to force mat to logout, simply kill the x-server process by issuing
    # kill 9391


    Mat
    Man will always find a difficult means to perform a simple task
    (Rube Goldberg)

    Having fun with Tcl at
    Mat's Playground

Similar Threads

  1. Replies: 1
    Last Post: 4th May 2009, 09:43 PM
  2. Replies: 1
    Last Post: 4th May 2009, 09:31 PM
  3. Blender causes logoff
    By hvniekerk in forum Using Fedora
    Replies: 2
    Last Post: 16th December 2006, 02:40 PM
  4. how to force linux to use swap memory
    By green-cat-fed in forum Using Fedora
    Replies: 6
    Last Post: 5th March 2006, 03:23 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •