Root user logged in without a password

Hello all,

This is nothing directly related to Webmin/Virtualmin.
Recently, I had a problem with MariaDB. To resolve the issue I used MobaXterm to login to server using SSH. To my surprise, the root user was logged in even without asking a password.
Then I tried Putty to login and it asked me for the password.
Whenever I try to login using MobaXterm, it is not asking for any password.

Does anyone have an advice?

-Josin

Do you have ssh keys set up?

Most probably you stored the password in the app.

1 Like

It actually says it in there docs on that page

image

1 Like

This question is better asked of the MobaXterm folks. We don’t maintain it, nor do I use it.

But, I can assure you ssh is not letting anyone log in without a password or a key or some other supported form of authentication.

1 Like

By default, MariaDB enables Unix socket authentication. This means if your system username matches a MariaDB user, you can log in without a password. Keep in mind that users authenticated this way cannot be used directly by web apps like phpMyAdmin, because it expects a username/password handshake.

You can check which authentication plugin is used by running the following command while logged into your database:

SELECT user, host, plugin  FROM mysql.user;

The question was not about logging into Mariadb. It was about ssh.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.