Force the root user to kick the user except other logon users

Source: Internet
Author: User
Tags pkill
Root users force the user to kick the system except other users. root users can force the user to kick other users. First, use the who command to view the user information. The information displayed is as follows: [root @ localhost ~] # W10: 32: 06up12: 28,5 users, loadaverage: 0.00, 0.00 ,... root users force the user to kick the system except other users. root users can force the user to kick other users. First, use the who command to view the user information. The information displayed is as follows: [root @ localhost ~] # W 10:32:06 up 12:28, 5 users, load average: 0.00, 0.00, 0.00 user tty from login @ idle jcpu pcpu WHATroot pts/0 192.168.0.111 32 0.00 s 0.01 s 0.00 s wroot pts/1 192.168.0.111 31 7.00 s 0.02 s 0.02 s-bash Force kicker command format: pkill-kill-t tty explanation: the pkill-kill-t kill command tty indicates the user's TTY. the command used to kick the pts/1 user is pkill-kill-t pts/1.
Related Article

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.