In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "how linux deletes users and groups". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to delete users and groups in linux".
In linux, you can use the userdel command to delete the user, clear the data related to the specified delete user, and use the syntax "userdel-r user name"; you can use the groupdel command to delete the user group, using the syntax "groupdel group name".
The operating environment of this tutorial: linux5.9.8 system, Dell G3 computer.
Relationship between Linux users and groups
The corresponding relationships between users and user groups are as follows:
One-to-one: a user can exist in a group and is the only member of the group
One-to-many: a user can exist in multiple user groups, and this user has common permissions for these groups
Many-to-one: multiple users can exist in a group with the same permissions as the group
Many-to-many: multiple users can exist in multiple groups, that is, an extension of the above three relationships.
The relationship between users and groups can be represented by the following figure:
How does linux delete users and groups
Linux Delete user
In linux, you can use the userdel command to delete a user and delete data information related to a specified user.
The syntax of the userdel command is simple, and the basic format is as follows:
Userdel-r user name
The-r option means that the user's home directory is deleted while the user is deleted.
Note that if you delete the user's home directory without deleting the user's home directory, the home directory will become a directory without owners and groups, that is, junk files.
Example: delete lamp user
Userdel-r lamp
Linux deletes a user group
In linux, you can use the groupdel command to delete a user group (group), which is basically in the following format:
Groupdel group name
Example: delete group users
Groupdel users thank you for reading, the above is the content of "how to delete users and groups in linux". After the study of this article, I believe you have a deeper understanding of how to delete users and groups in linux, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.