[MXS-2728] maxscale .secret file permission Created: 2019-10-18  Updated: 2020-08-25  Resolved: 2019-10-28

Status: Closed
Project: MariaDB MaxScale
Component/s: maxkeys
Affects Version/s: None
Fix Version/s: 2.4.3

Type: Bug Priority: Major
Reporter: Muhammad Irfan Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None


 Description   

There is some additional documentation required when installing Maxscale 2.4.2 on CentOS 7

$ yum -y install maxscale-2.4.2-1.centos.7.x86_64
$ maxkeys
$ maxpasswd my-maxscale-plaintext-password

Output from maxpasswd is placed in the /etc/maxscale.cnf file

The problem is that the /var/lib/maxscale/.secrets file is created as owned by the user who ran the commands rather than maxscale.

This leads to the following error when starting MaxScale:

Access for secrets file [/var/lib/maxscale/.secrets] failed. Error 13, Permission denied.

It can be fixed with:

$ chown maxscale: /var/lib/maxscale/.secrets

The yum install creates the maxscale user but does not advise that you change to that user to perform the other actions.



 Comments   
Comment by markus makela [ 2019-10-19 ]

I think maxkeys can automatically change the ownership if it can do it and if it can't, it can log a message to let the user know.

Generated at Thu Feb 08 04:16:15 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.