WHM overwrites MariaDB root password if set manually?
I recently reset my password for the root user of MariaDB. I later found my password not working and reset...and twice more. I had followed this tutorial and it was working fine. Is WHM resetting the password for some reason?
-
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 -
That half answers the question. My real question is if WHM manually overwrites the file effectively "resetting" the password automatically. 0 -
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 -
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.
Comments
4 comments