In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you what are the user and group commands in linux. I hope you will get something after reading this article. Let's discuss it together.
What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.
The details are as follows:
1. User-related commands
Su switching user
Root-> ordinary users do not need a password
Passwords are needed between ordinary users
Ordinary user-> root requires password
Newgrp switch group identity
Whoami to view current login name
Id views user information
Groups view user group information
Chfn sets user comments
Finger views user comments
2. Add users in batch
Create a lot of accounts in linux, and you can put the information into a text file and import it into the system.
1) Edit user files
2) Edit password file
3) newusers
4) pwunconv writes the password in / etc/shadow back to the / etc/passwd file
5) chpasswd writes the password file we wrote into / etc/passwd
6) pwconv writes the password in / etc/passwd back to shadow
3. Give special rights to ordinary users
Sudo an instruction
For example: sudo / sbin/shutdown-h 10
/ etc/sudoers
In this file, record which users can execute which commands
Visudo
This command is used to manage the / etc/sudoers file
* find the full path of the command whereis command
After reading this article, I believe you have a certain understanding of "what are the users and group commands in 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.
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.