Linux Operating System (MOSC)

MOSC Banner

Cannot ssh to server directly as root but non-root, then su to root is okay

edited Apr 11, 2022 11:15PM in Linux Operating System (MOSC) 2 commentsAnswered ✓

On some servers, you can only login ROOT if you first login as a non-ROOT account, and then SU (NOT SUDO, BUT SU)

So, if you try to putty/ssh/.. directly as ROOT, with the password you know is correct, it doesn't work.

But then you login as anything non-ROOT, then SU to ROOT with the correct password, and it works.

In my mind, if you know the ROOT password, either login should work since you have the correct password. But, direct ROOT login can be disabled.

My question is: what is this setup named like, what is the context this is being setup in, or, how do you set that up ?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center