How to kick a user by an administrator in Linux

Source: Internet
Author: User
Article Title: how does an administrator kick a user in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

I checked this command everywhere. I was too lazy to record it. I finally found this method again today, and it is wonderful to record it quickly.

In shell, who can see which users have connected to the local machine, including pts, VPN, or other users. The administrator can use the following method to disconnect some users:

1. who-a view the connected pid Number.

2. There are several device files in the/etc/pts/directory. Run the fuser command to check which device file corresponds to the PID Number found in step 1. For example, fuser/etc/pts/0

3. If the connection to device 0 is found, use fuser-k/etc/pts/0.

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.