Server Defaults to root and no sysconfig

Bug #955104 reported by Robert Gil
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Invalid
Undecided
Ignacio Nin

Bug Description

The RPM packages default the percona mysql user to root. I understand why this is done, but it is not secure. The default user should be mysql, or some other user not to conflict with the OS (fedora/centos/rhel etc).

The typical way to handle this is with an /etc/sysconfig/mysql (or percona) file. Configuration options should be set in here, not the init.d file. The init.d file should just have defaults, but should be able to be overridden in the /etc/sysconfig/mysql file. Also, this file should be marked as a config file in the rpm such that it doesnt get blown away during upgrade etc. Typically the init.d file will get blown away/upgraded when doing an rpm update, so any such configuration options in this file will be lost.

Thanks,
Rob

Changed in percona-server:
assignee: nobody → Ignacio Nin (ignacio-nin)
Revision history for this message
Ignacio Nin (ignacio-nin) wrote :

Hello Rob,

I just checked our packages and the default user that the server runs the mysqld program with is mysql. Perhaps I'm not understanding the issue, could you please elaborate?

Thanks,

Ignacio.

Stewart Smith (stewart)
Changed in percona-server:
status: New → Incomplete
Stewart Smith (stewart)
security vulnerability: yes → no
visibility: private → public
Changed in percona-server:
status: Incomplete → Invalid
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-2738

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.