Results 1 to 4 of 4

Thread: How do you log out a specific instance of a user

  1. #1
    Join Date
    Jan 2014
    Beans
    1

    How do you log out a specific instance of a user

    Hi guys,

    I know you can log out the user with the command

    sudo pkill -KILL -u username

    But I don't want to log out every instance of the username. Just specific one. For example, I have username logged in twice like this.

    username pts/0 2014-01-14 12:22
    username pts/1 2014-01-14 12:28


    Lets say I want to log out only pts/1. How would I go about doing this?

  2. #2
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    7,427
    Distro
    Ubuntu

    Re: How do you log out a specific instance of a user

    exit
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  3. #3
    Join Date
    Jan 2014
    Beans
    Hidden!
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: How do you log out a specific instance of a user

    looking for a Low End Dedicated Server ?
    hobby to be anonymous, web proxy list and proxy list

  4. #4
    Join Date
    Jul 2013
    Location
    Wisconsin
    Beans
    4,141

    Re: How do you log out a specific instance of a user

    A programmatic way is to tell systemd-logind to terminate their session using dbus.

Bookmarks

Posting Permissions

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