Today's article is a nice, short, easy article...

KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
10,670
Reaction score
9,162
Credits
88,594
In today's article, you get to kill a user (session).

No, this isn't something many folks here will need. But, if you're running a server with multiple users, this is something you'll want to know how to do. Eventually, HR is going to knock on your door and ask you to kill a user session before they tell the other end user that they've lost their job. You know, stuff like that.

This would also sort of be useful if you found unknown users - but if it has reached that point you've done something terribly wrong. Well, maybe not you in particular, but somebody has.


It's just a quick article, as I didn't have all that much time (and motivation was lacking a bit - I've written a whole lot of these things).
 


dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
2,111
Reaction score
1,725
Credits
15,271
I always knew KG was a ruthless killer at heart. :)
 
OP
K

KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
10,670
Reaction score
9,162
Credits
88,594
There are times when I don't just kill - I killall!
 

BigBadBeef

Active Member
Joined
Sep 23, 2021
Messages
440
Reaction score
224
Credits
3,982
When you're making a session of killing users, it helps to procure automatic weapons beforehand.
 
OP
K

KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
10,670
Reaction score
9,162
Credits
88,594
When you're making a session of killing users, it helps to procure automatic weapons beforehand.

Hmm... You could probably write a script that would automatically kill all the users. There's probably a better way, but I'd probably start by using awk to grab the first column from the output of who and go from there.
 

Staff online

Members online


Top