In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article is to share with you the content of a sample analysis of account management in linux. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
/ etc/passwd system account information
/ etc/shadow account password information is encrypted by MD5 32-bit
Add "*" in front of the password bar! "prohibit the use of an account
/ etc/group system group information
/ etc/gshadow
Newgrp changes the landing group
Useradd & adduser establishes a new user useradd-m test automatically sets up a user's login directory
Useradd-m-g pgroup test specifies the level to which it belongs
/ etc/default/useradd related settings
/ etc/login.defs UID/GID related settings
Passwd change password passwd test
Usermod modifies user account
Userdel deletes the account userdel-r test
The SHELL used by chsh when replacing the login system [- l] shows the available SHELL; [- s] to modify its own SHELL.
Chfn changes the information displayed by the finger instruction
Finger finds and displays user information
Id displays the user's ID id test
Groupadd add Group
Groupmod is similar to usermod
Groupdel delete group
Su test change user su-enter root and use the environment variable of root
Sudo executes instructions in another capacity
Visudo editor / etc/sudoers adds a line of "test ALL= (ALL) ALL"
% wheel ALL = (ALL) sudo is available to users of all wheel groups in the ALL system
% wheel ALL = (ALL) NOPASSWD: all users in the ALL wheel group do not use the password NOPASSWD
User_Alias ADMPW = vbird, dmtsai, vbird1, vbird3 join the ADMPW group
ADMPW ALL = NOPASSWD:! / usr/bin/passwd, / usr/bin/passwd [A-Za-z] *,\
! / usr/bin/passwd root can change the user's password, but not the root password (add before the instruction! Representative is not allowed)
PAM (Pluggable Authentication Modules, embedded module)
Who & w to see who is online
Last's recently logged-in host information
Lastlog last logged in time read / var/log/lastlog
Talk talks to other users
Write send message write test [ctrl] + d send
Mesg sets the write permission of the terminal mesg n forbids receiving mesg y
Wall sends messages to all users wall this is q test
Mail writes mail
/ etc/default/useradd home directory default settings
Quota shows the space used by the disk and limits quota-guvs shows the current root's own quota limit
Quota-vu query
Quotacheck checks disk usage space and limits quotacheck-avug all in / etc/mtab, including partition supported by quota
Thank you for reading! This is the end of this article on "sample Analysis of account Management in linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
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.