Other users kick the Linux system

You must be a root administrator premise
use w view the user currently logged on the system, where users also use other root, other users to see if a user name in the first column of the display to identify USER

 

Use last -5 Log in to view the last five records login information for login status


Kick user command
fuser -k / dev / PTS / 0
--- command interpreter:
fuser: dry him (Fuck the User)
-k: Kill (the kill)
/ dev / PTS / 0: 0 virtual terminal

TTY indicates that the terminal device
pts represents a virtual terminal equipment
----------------
Disclaimer: This article is the original article CSDN bloggers' Jade North Star ", and follow CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/qq751470431/article/details/79668032

Guess you like

Origin www.cnblogs.com/hakeer/p/12078857.html