Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-2728

maxscale .secret file permission

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.3
    • Component/s: maxkeys
    • 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.

        Attachments

          Activity

            People

            Assignee:
            markus makela markus makela
            Reporter:
            muhammad.irfan Muhammad Irfan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: