In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article shows you how to eliminate redhat linux users, the content is concise and easy to understand, can definitely make your eyes bright, through the detailed introduction of this article, I hope you can learn something.
View the logged-in users on the machine
[root@chengest~] # w
16:29:02 up 2 days, 2:35, 5 users, load average: 0.03, 0.05 0.01USER TTY FROM LOGIN@ IDLE JCPU PCPU WHATroot pts/1: 0.0 Tue15 2days 1:44 0.04s-bashroot pts/2: 0.0 Tue15 46 bashroot pts/2 42m 0.05s 0.05s bashroot pts/3: 0.0 Tue15 2days 0.02s 0.02s bashroot pts/4 172.20.52 .114 14:17 58:48 0.16s 0.03s sqlplusroot pts/5 172.20.52.114 15:31 0.00s 0.03s 0.00s 0.00s w I kicked out pts/1 (only root can kick out users) [root@chengest] # pkill-kill-t pts/1 [root@chengest] # pkill-kill-t pts/2 [root@chengest] # pkill-kill-t pts/3 to see if [root@] Chengest ~] # w 16:34:16 up 2 days 2:40, 2 users, load average: 0.00,0.05, 0.02USER TTY FROM LOGIN@ IDLE JCPU PCPU WHATroot pts/4 172.20.52.114 14:17 1purge 04m 0.16s 0.03s sqlplusroot pts/5 172.20.52.114 15:31 0.00s 0.03s wroot can kick out other users including themselves
View the logged-in users on the machine
[root@chengest~] # w
16:29:02 up 2days, 2:35, 5 users, load average: 0.03,0.05, 0.01USER TTY FROM LOGIN@ IDLE JCPU PCPU WHATroot pts/1: 0.0 Tue15 2days 1:44 0.04s-bashroot pts/2: 0.0 Tue15 46pur42m 0.05s 0.05s bash
Root pts/3: 0.0 Tue15 2days 0.02s 0.02s bash
Root pts/4 172.20.52.114 14:17 58:48 0.16s 0.03s sqlplus
Root pts/5 172.20.52.114 15:31 0.00s 0.03s 0.00s w
I kicked out pts/1 (only root can kick out users)
[root@chengest] # pkill-kill-t pts/1
[root@chengest] # pkill-kill-t pts/2
[root@chengest] # pkill-kill-t pts/3
Check to see if it is kicked out.
[root@chengest ~] # w
16:34:16 up 2 days, 2:40, 2 users, load average: 0.00, 0.05, 0.02
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
Root pts/4 172.20.52.114 14:17 1:04m 0.16s 0.03s sqlplus
Root pts/5 172.20.52.114 15:31 0.00s 0.03s 0.00s w
Root can kick out other users, including checking the port occupied by lsof-I: 22 the above is how redhat linux removes users. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.