• Create Sudo / Root Privilege  User

[root@testsvr01 ~]# useradd sysadmin -G wheel

  • Add Sudo Permission in the existing  User

[root@testsvr01 ~]# usermod -aG wheel sysadmin

  • Set Password

[root@testsvr01 ~]#  passwd sysadmin
Changing password for user sysadmin. <Password >
New password: <Password >
BAD PASSWORD: The password is shorter than 8 characters
Retype new password:
passwd: all authentication tokens updated successfully.

  • Login with New User

[root@testsvr01 ~]#  ssh -l sysadmin testsvr01
sysadmin@192.168.20.100's password:
Last login: Fri Dec  2 12:47:11 2022 from testsvr01
[sysadmin@testsvr01 ~]$ sudo -i
[sudo] password for sysadmin:
[root@testsvr01 ~]#

Technology