Disabling Direct Root Login (SSH) Print

  • 0

Disabling Direct Root Login (SSH)

If you're using cPanel make sure you add your anotheruser user to the 'wheel' group so that you will be able to 'su -' to root, otherwise you may lock yourself out of root.

Set up anotheruser if you haven't already got one:

a. Type: groupadd anotheruser
b. Type: useradd anotheruser -ganotheruser
c. Type: passwd anotheruser passwordhere
and add a password for the new account.

On a CPanel system, you can (MUST) now go into root WHM and add anotheruser to the wheel group.

After you do this, you will have to login as anotheruser then you will 'su -' to get to root.

Was this answer helpful?

« Back