I'm running mariadb as a different user than the standard mysql. To this end, I've updated the service file and replaced
User=mysql
Group=mysql
with
User=someuser
Group=somegroup
This used to work fine, but after a recent re-install I'm unable to get MariaDB running. Every time it loads it complains it doesn't have permission to access the files which someuser
clearly does.
System: Fedora 22, MariaDB 10.0
Anyone have any idea how I can check if systemd is really running the service as the correct user?
thanks, Michael
someuser
does have permissions to access those files? Is SELinux running? Are there additional ACLs on the files that might be getting in the way? Though there are probably better ways, one way you could check the user would be to replace ExecStart with a script that logs its euid etc.