SSH direct root logins are permitted
Hi,
cPanel Security Advisor tells me SSH direct root logins are permitted. change PermitRootLogin to no
but if i change it to no how will i login as root ?
-
You would create another user, add the new user to the wheel group and elevate permissions. 0 -
[quote="Deehem, post: 1516422">You would create another user, add the new user to the wheel group and elevate permissions.
There is big list which do i add ? shame i cant create my own one for root. How do i elevate permissions0 -
Add any normal user to the "wheel" group (can be done in WHM). Once that is done, SSH in as the normal user. When you get a prompt issue the su command to get root, best to use: su - with the dash, so that you get roots login environment variables. You will be prompted for roots password for the su command, and then you will be at a root shell. 0 -
[quote="popeye, post: 1516432">There is big list which do i add ? shame i cant create my own one for root. How do i elevate permissions
Adding the user to the wheel group will elevate the access to the user so that the user can then access root via "su". Thank you.0
Please sign in to leave a comment.
Comments
5 comments