This article describes the Linux user and group commands with examples. Share with you for your reference, the details are as follows: 1. User-related commands newgrp Switch group identity whoami View the current login name 2. Add users in batches Create many accounts in Linux, put the information into a text file, and then import it into the system. 1) Edit user files 2) Edit the 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 to /etc/passwd 6)pwconv writes the password in /etc/passwd back to shadow 3. Grant special permissions to ordinary users visudo This command is used to manage the /etc/sudoers file I hope this article will help you maintain your Linux system. You may also be interested in:
|
<<: Why is it slow when using limit and offset paging scenarios?
>>: Use Vue3 to implement a component that can be called with js
Initialize Dockerfile Assuming our project is nam...
Use meta to implement timed refresh or jump of th...
I believe that many partners who have just come i...
Optimize queries Use the Explain statement to ana...
Table of contents Some basic configuration About ...
Table of contents 1 System Introduction 2 System ...
This script can satisfy the operations of startin...
Problems: After adding the -v parameter to docker...
Table of contents Index Model B+Tree Index select...
Install mysql5.7.18 on CentOS6.7 1. Unzip to the ...
In web design, it is very important to use an org...
WIN10 64-bit install the latest MySQL8.0.18 downl...
Overview In the previous chapter, we learned abou...
Method 1: Use CSS overflow omission to solve The ...
background Now the company's projects are dev...