Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Solaris 11.4.42 ssh root login PAM

user5903255Apr 26 2023

Hi,

I ran into a curious problem with Solaris 11.4.42. The included sshd to be precise. I can't get it to accept root logins.
I edited the sshd_config and set PermitRootLogin to yes. Then I edited /etc/default/login and commented out the CONSOLE line. On my local installation that works as expected.

And now to the curious part:
I also installed the exact same Solaris (same iso) on a remote server and made the same changes but there it does not work! Instead I get the following error:

sshd[1560]: [ID 800047 auth.crit] fatal: Access denied for user root by PAM account configuration [preauth]

I added "UsePAM no" to sshd_config and restarted the service but it still didn't work. Even a reboot didn't change anything.
So how can it work just fine on my local machine but not on the remote server? Does PAM only kick in if it detects a non-lan ip or something?

Either way this is nasty and any help would be appreciated.

This post has been answered by Alanc-Oracle on May 3 2023
Jump to Answer
Comments
Post Details
Added on Apr 26 2023
4 comments
4,029 views