Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How linux deletes users

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you how to delete linux users, I hope you will learn something after reading this article, let's discuss it together!

The method for linux to delete a user is as follows: 1, execute the [ps-u user name] command to view the user's pid;2, execute the [kill pid] command to end the user's sshd or shell process; 3, execute the [userdel-r user name] command to delete the user.

Specific methods:

1. Use the command cat / etc/passwd to check all the users and see the user name you need to delete.

2. Use the command who to query the currently logged-in users

3. Use the command ps-u user name to view the user's pid

4. Kill his sshd or shell process with the command kill pid

5. Delete the user with the command userdel-r user name

After reading this article, I believe you have a certain understanding of "how to delete users from linux". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report