How to exclude a specified login user from Linux

Source: Internet
Author: User

Recently, there is a business scenario needs, you have to put some of the user on the server to kick off, oh, nonsense not to say, methods have two

1. First Use W(or who) to see who landed on the server:


2. Below, we need to kick off the Caesar user who landed on the 192.168.56.2 machine

(1). Kick off by pkill-kill-t PTS/6

(2). Find the corresponding process number by Ps-ef | grep pts/6 Command First


Then kill the process 4266:kill-9 4266

At this point, under W view, found that the Caesar user logged on from the 192.168.56.2 machine has been kicked off


How to exclude a specified login user from Linux

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.