Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Write mysql root credentials to /root/.my.cnf when imaging. #56

Closed
patch0 opened this issue Jun 13, 2017 · 1 comment
Closed
Labels

Comments

@patch0
Copy link
Contributor

patch0 commented Jun 13, 2017

(Note: This may be something for imager, or Stretch, but applied to Symbiosis images only)

It's never clear that the root, admin and mysql root@localhost users all have the same password in a newly imaged machine, which leads to users likely changing the root/admin passwords like they should, and not making note of the root@localhost password we set for mysql.

Simply writing the below to /root/.my.cnf (with relevant permissions) would make password recovery simpler, and allow the user to log in directly.

[client]
user=root
password="<example>"

There's a small outside risk to this, by keeping it in /root would negate most of this, and make things simpler for users.

Originally reported on Bytemark's Gitlab by @pcammish on 2017-04-13T13:49:00.308Z

@patch0
Copy link
Contributor Author

patch0 commented Jun 13, 2017

I'm not sure this is a good idea without keeping it up to date when the root password changes inside mysql.

I think the debian.cnf is enough to reset a forgotten root password.

Documenting the procedure for resetting a root password for mysql would be sufficient I think.

Originally posted by @patch0 on 2017-04-20T13:26:28.583Z

@patch0 patch0 closed this as completed Jul 7, 2017
@patch0 patch0 added the wontfix label Jul 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant