Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-5939

service mysql status command fails when run by normal user

    XMLWordPrintable

Details

    Description

      Command "service mysql status" fails when executed by a normal user. (It works for other services.) There are two reasons for this. First, the process id file is created with permissions 660, so it can't be read (most process id files have permissions 622). Second, the "kill -0" command used in the service file to determine if a process is active fails when executed by an arbitrary user.

      Attached are a script demonstrating the problem and its output. Also attached are the my.cnf file and the service file (/etc/init.d/mariadb). The service file is lightly modified from the distributed support-files/mysql-server.

      mariadb was installed from file mariadb-5.5.36-linux-x86_64.tar.gz

      Attachments

        1. bug_output
          1 kB
        2. mariadb
          12 kB
        3. my.cnf
          3 kB
        4. show_mariadb_bug
          0.9 kB

        Issue Links

          Activity

            People

              otto Otto Kekäläinen
              rockowitz Sanford Rockowitz
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.