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

KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
10,578
Reaction score
9,100
Credits
87,839
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,084
Reaction score
1,701
Credits
15,004
I always knew KG was a ruthless killer at heart. :)
 

BigBadBeef

Active Member
Joined
Sep 23, 2021
Messages
437
Reaction score
219
Credits
3,962
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,578
Reaction score
9,100
Credits
87,839
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.
 

Members online


Top