Rocky Linux 9 Mate Wrong User

I used the command useradd and now I can not login as root using Mate. Is there a solution?

The solution is to not login to a desktop session as root. You should never run an X session as root due to the various security issues that may linger in Xorg.

I added a user without a password. The UI shows the new user, not root

If you can login as that user I don’t see the problem. Just login and do whatever it is that you’re going to do.

One of the first things should probably be to add a password for your user, though…

I am unable to login as root or the new account.

CTRL+ALT+F3 or another F key to get to a TTY console. Login as root, run passwd user, replacing user with the account you made. Set a password, and then CTRL+ALT+F1 (or F6 or 7) to get back to the login screen. Or init 6 to reboot cleanly.

That looks like what I am after. Thanks for the information. I will give it a try.