I'm trying to figure out a "safe" way of allowing a non-SUPER user to execute a specific command requiring SUPER privileges, i.e. SET SESSION binlog_format = 'MIXED'
. I don't want to grant the user SUPER privileges for security reasons. Can this be accomplished using a stored procedure or any other method?
MySQL – Stored Procedure Requiring SUPER Permission
MySQLpermissionsstored-procedures
Related Question
- MySQL Stored Procedure Grant Revoked After Alter – Solution
- Mysql – GRANT EXECUTE ON PROCEDURE unable to USE database
- SQL Server – Stored Procedure with Minimal Permissions for Cross-Database Operations
- T-SQL – Script Execute Permissions on Stored Procedure
- SQL Server Permissions – Detect Execute Permission Granted to Role Without ON Clause
- phpMyAdmin Super Privileges – Admin on phpMyAdmin Does Not Have Super Privileges
- Sql-server – Execute SSIS procedure from stored procedure using non-privileged SQL login
- How to Grant Permission to Execute Stored Procedure in Master Database from Another Database
Best Answer
You can have stored procedures execute as the definer instead of the invoker:
See: Access Control for Stored Programs and Views