Bug 221085
Summary: | chown -R of the mysql data directory every startup | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | Johnny Hughes <johnny> |
Component: | mysql | Assignee: | Tom Lane <tgl> |
Status: | CLOSED ERRATA | QA Contact: | David Lawrence <dkl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 4.4 | CC: | byte, hhorak, juanino, ralph+rh-bugzilla |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | RHSA-2008-0768 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2008-07-24 20:04:20 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
Johnny Hughes
2007-01-01 16:34:02 UTC
Seems like it ought to be sufficient from a security perspective to chmod the top directory, rather than -R every time. Will fix in next turn (but I'm not sure when that will be for the base RHEL4 mysql release). In addition, what happens if you are not running the server as mysql:mysql but some other user. This causes a problem in my environment because the init script needs to be modified to prevent this from happening. Maybe it should be a seperate bug to read the mysql user from a config file? If you try to run it as some other user, you'll doubtless find that everything breaks --- for one thing the SELinux policy for mysqld will certainly not allow that. I'm uninterested in trying to support such a case. I don't use selinux as it's not a requirement to run the OS. I imagine selinux would break if apache ran as some other user too, but there are certainly implementations that require it in large enterprises. In particular in development environments we run various processes as different users. I'll accept that not a lot of people don't do this and "uninterested" means not worth the effort. This request was evaluated by Red Hat Product Management for inclusion, but this component is not scheduled to be updated in the current Red Hat Enterprise Linux release. If you would like this request to be reviewed for the next minor release, ask your support representative to set the next rhel-x.y flag to "?". An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2008-0768.html |