greektranslator

Well-Known Member
Jun 5, 2011
123
10
68
Greece
cPanel Access Level
Root Administrator
I have disabled Password Authentication and I log in via an SSH key and passphrase. However, I use root for that.
Should it be changed to a different username, and if yes, how? I tried adding a user in the wheel users group but since Password Authentication is disabled there is no way to log in with that and then switch to root.
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
Hello @greektranslator

If you want to use a sudo (wheel) user You can but you'd most likely want to enable the NOPASSWD option in /etc/sudoers:

Code:
## Allows members of the 'sys' group to run networking, software,
## service management apps and more.
# %sys ALL = NETWORKING, SOFTWARE, SERVICES, STORAGE, DELEGATING, PROCESSES, LOCATE, DRIVERS

## Allows people in group wheel to run all commands
%wheel  ALL=(ALL)       ALL

## Same thing without a password
# %wheel        ALL=(ALL)       NOPASSWD: ALL

Thanks!