Bug 17958
Summary: | mysql is not properly secured when installed. | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Per Steinar Iversen <persteinar.iversen> |
Component: | mysql | Assignee: | Patrick Macdonald <patrickm> |
Status: | CLOSED NOTABUG | QA Contact: | David Lawrence <dkl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | Keywords: | Security |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2000-09-30 15:49:07 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Per Steinar Iversen
2000-09-30 15:49:05 UTC
If you install it, you need to configure it. Default passwords considered harmful. The rpm version distributed by the mysql group warns the installer to set a password at least. The current RH mysql install is silent, this is likely to cause some interesting problems for the unwary. I strongly agree that default passwords are bad. -psi Returning output (or asking for input) from one of the post/pre scripts is considered bad - you wouldn't necesarrily see it. RPM is designed to be non-interactive. What then about adding something like this to /etc/rc.d/init.d/mysql, just after starting mysqld: mysqladmin --user root processlist > /dev/null 2> /dev/null && echo "Unsafe mysql!" This will unfortunately also trigger if the password is set in /root/.my.cnf but that case should be easy to take care of with a few script lines. The important thing is to warn of a very insecure situation. |