Home >Operation and Maintenance >Linux Operation and Maintenance >How to create a root user with one command in Linux

How to create a root user with one command in Linux

WBOY
WBOYforward
2023-05-25 18:13:552291browse
[root@docker-test ~]# useradd -p "123456" toor -o -u 0

Command analysis:

-p Specify password

-u Specify UID

-g Specify user group

-o Normally except The uid of root is 0, and other users cannot be 0, so -o is needed to force

What versions of Linux are there?

The versions of Linux are: Deepin, UbuntuKylin, Manjaro, LinuxMint, Ubuntu, etc. Version. Among them, Deepin is one of the best-developed Linux distributions in China; Ubuntu Kylin is a derivative distribution based on Ubuntu; Manjaro is a Linux distribution based on Arch; LinuxMint's default Cinnamon desktop is similar to Windows XP and is simple and easy to use; Ubuntu is a desktop application Mainly Linux operating system.

The above is the detailed content of How to create a root user with one command in Linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete