Skip to main content

WHM overwrites MariaDB root password if set manually?

Comments

4 comments

  • cPanelLauren
    You need to set passwords like this through the UI of cPanel for pretty much all of cPanel/WHM related services. WHM uses whatever is in /root/.my.cnf as the password and will attempt to use what's set there as it has no way to know that you've changed the password if done manually.
    0
  • tBartel03
    That half answers the question. My real question is if WHM manually overwrites the file effectively "resetting" the password automatically.
    0
  • cPanelLauren
    Which file? Like I said, it references /root/.my.cnf for the password. When you change through the UI it updates this file, when you change through the MySQL Commandline manually this is not updated.
    0
  • tBartel03
    Which file? Like I said, it references /root/.my.cnf for the password. When you change through the UI it updates this file, when you change through the MySQL Commandline manually this is not updated.

    Again, that half answers my question. Something in WHM is - to my best guess, is overwriting the password so that only changing the password via WHM sticks. I am guessing this is some form of security mechanism?
    0

Please sign in to leave a comment.