In Linux, if a user is hacked, it is necessary to kill the user. In addition, we recommend that you set the password to unmodifiable. First, use w to view the user information, for example, USERTTYFROMLOGIN @ IDLEJCPUPCPUWHATrootpts/0clk151a-a.whoi.e13: 3 in a Linux system, if it is hacked, it is quite necessary to kill a user,
In addition, we recommend that you set the password to unmodifiable.
First, use w to view user information, as shown in figure
User tty from login @ IDLE JCPU PCPU WHAT
Root pts/0 clk151a-a.whoi.e 5.00 s 0.03 s 0.02 s top
Root pts/1 128.128.1.250 0.00 s 0.05 s w
We can see from w that the system has logged on to two users, and pts/0 is executing top,
Therefore, run the following command:
Fuser-k/dev/pts/0
This user can be kicked out
In addition, for password and account security settings, run the following command:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service