In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly shows you how to view all users of the Linux system, the content is simple and easy to understand, and the organization is clear. I hope it can help you solve your doubts. Let Xiaobian take you to study and learn "How to view all users of the Linux system".
*1. View all users in Linux *
(1)In the terminal. The file/etc/passwd is not included.
(2)Look at the third parameter:500 or more, is built behind the user. Others are users of the system.
Or cat /etc/passwd| cut -f 1 -d :
2. User management commands
useradd Note: add user
adduser Note: add user
passwd Note: Set password for user
usermod Note: Modify user commands, you can modify the login name, user's home directory, etc. through usermod;
pwcov Note: Synchronizing users from/etc/passwd to/etc/shadow
pwck Note: pwck is to verify whether the contents of the user configuration files/etc/passwd and/etc/shadow are legal or complete;
pwunconv Note: This is the reverse operation of pwcov, which creates/etc/passwd from/etc/shadow and/etc/passwd, and then deletes the/etc/shadow file;
finger Note: View User Information Tool
id Note: View the UID, GID and user group to which the user belongs
chfn Note: Change User Information Tool
su Note: User Switching Tool
sudo Note: sudo is to execute a command as another user, su is used to switch users, and then switch to the user to complete the corresponding task, but sudo can directly execute the command, such as sudo does not need the root password to execute the root assigned to the execution only root can execute the corresponding command; but through visudo to edit/etc/sudoers to achieve;
visodo Note: visodo is the command to edit/etc/sudoers; you can also use vi to edit/etc/sudoers directly without this command. The effect is the same;
sudoedit Note: Similar to sudo;
3. Tools or commands for managing user groups;
groupadd Note: Add a user group;
groupdel Note: Delete user groups;
groupmod Note: Modify user group information
groups Note: Displays the user groups to which the user belongs
grpck
grpconv Note: synchronize or create/etc/gshadow by the contents of/etc/group and/etc/gshadow files, or create/etc/gshadow if it does not exist;
grpunconv Note: Sync or create/etc/group by the contents of the/etc/group and/etc/gshadow files, then delete the gshadow file
Linux is a free-to-use and freely distributed UNIX-like operating system, is a POSIX-based multi-user, multitasking, multi-threaded and multi-CPU operating system, using Linux to run major Unix tools, applications and network protocols.
The above is about "Linux system how to view all users of the system" content, if the article is helpful to you and think it is well written, please share it with your friends to learn new knowledge, if you want to know more related knowledge content, please pay more attention to 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.
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.