How to disable "root" web login?

Hi experts,

Would you help to solve Disable “root” account web login problem? I don’t want disable root directly in Debian 10, since that cause lots of problems.

Just did a check and I was surprised it worked fine (even though permitrootlogin was no / password forbidden

Remove the following line:

You will need to do it after each update currently how ever I will consider it for the future releases remove / modify it that it will become a check box…

This should fix the issue + adding a more “friendly” error message.