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

SHOW GRANTS for PUBLIC should work for all users

Details

    Description

      MariaDB [(none)]> show grants;
      +------------------------------------------------+
      | Grants for developer@%                         |
      +------------------------------------------------+
      | GRANT USAGE ON *.* TO `developer`@`%`          |
      | GRANT ALL PRIVILEGES ON `dev_db`.* TO `PUBLIC` |
      +------------------------------------------------+
      2 rows in set (0.000 sec)
       
      MariaDB [(none)]> show grants for public;
      ERROR 1044 (42000): Access denied for user 'developer'@'%' to database 'mysql'
      

      Any user can see public's grants by running their own SHOW GRANTS command. This means that SHOW GRANTS FOR PUBLIC should also be allowed.

      Attachments

        Issue Links

          Activity

            cvicentiu Vicențiu Ciorbaru created issue -
            cvicentiu Vicențiu Ciorbaru made changes -
            Field Original Value New Value
            cvicentiu Vicențiu Ciorbaru made changes -
            Assignee Oleksandr Byelkin [ sanja ]
            cvicentiu Vicențiu Ciorbaru made changes -
            Fix Version/s 10.11 [ 27614 ]
            cvicentiu Vicențiu Ciorbaru made changes -
            Assignee Oleksandr Byelkin [ sanja ] Vicențiu Ciorbaru [ cvicentiu ]
            cvicentiu Vicențiu Ciorbaru made changes -
            issue.field.resolutiondate 2022-10-10 15:44:50.0 2022-10-10 15:44:50.513
            cvicentiu Vicențiu Ciorbaru made changes -
            Fix Version/s 10.11.1 [ 28454 ]
            Fix Version/s 10.11 [ 27614 ]
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Closed [ 6 ]

            People

              cvicentiu Vicențiu Ciorbaru
              cvicentiu Vicențiu Ciorbaru
              Votes:
              0 Vote for this issue
              Watchers:
              5 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.