In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the knowledge of "how to view all the information of users in Linux". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
View the information of users in the system by using the / etc/passwd file, the getent command, and the compgen command.
As we all know, user information in the Linux system is stored in the / etc/passwd file.
This is a text file that contains the basic information of each user. When we create a user in the system, the details of the new user are added to the file.
The / etc/passwd file records the basic information of each user as one line in the file, which contains seven fields.
One line in the / etc/passwd file represents a single user. This file divides the user's information into three parts.
* part 1: `root` user information * part 2: system-defined account information * part 3: real user account information the first part is the root account, which represents the administrator account and has complete authority over every aspect of the system.
The second part is the system-defined groups and accounts, which are necessary to correctly install and update the system software.
In the end, the third part represents a real user who uses the system.
When you create a new user, the following four files are modified.
* `/ etc/ passwd`: the details of the user account are updated in this file. * `/ etc/ shadow`: the user account password is updated in this file. * `/ etc/ group`: the details of the new user group are updated in this file. * `/ etc/ gshadow`: the new user group password is updated in this file. This is the end of the content of "how to view all user information in Linux". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.