From 4cf8f36035d733a27a6acedf2e4769fe84b0667f Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Wed, 26 Aug 2020 15:06:05 +0500 Subject: [PATCH] further permissions --- install/mysqlUtilities.py | 2 +- plogical/mysqlUtilities.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install/mysqlUtilities.py b/install/mysqlUtilities.py index 1806adba4..e59ea7cf4 100755 --- a/install/mysqlUtilities.py +++ b/install/mysqlUtilities.py @@ -60,7 +60,7 @@ class mysqlUtilities: if mysqlData['mysqlhost'].find('rds.amazon') == -1: dropDB = "GRANT ALL PRIVILEGES ON " + dbname + ".* TO '" + dbuser + "'@'%s'" % (publicip) else: - dropDB = "GRANT ALTER, CREATE, SELECT, INSERT, DELETE ON " + dbname + ".* TO '" + dbuser + "'@'%s'" % (publicip) + dropDB = "GRANT INDEX, REFERENCES, PROCESS, RELOAD, DROP, UPDATE, ALTER, CREATE, SELECT, INSERT, DELETE ON " + dbname + ".* TO '" + dbuser + "'@'%s'" % (publicip) else: dropDB = "GRANT ALL PRIVILEGES ON " + dbname + ".* TO '" + dbuser + "'@'localhost'" diff --git a/plogical/mysqlUtilities.py b/plogical/mysqlUtilities.py index b35de3a7a..8a4af86fb 100755 --- a/plogical/mysqlUtilities.py +++ b/plogical/mysqlUtilities.py @@ -155,7 +155,7 @@ class mysqlUtilities: if mysqlUtilities.RDS == 0: cursor.execute("GRANT ALL PRIVILEGES ON " + dbName + ".* TO '" + globalUser + "'@'%s'" % (mysqlUtilities.LOCALHOST)) else: - cursor.execute("GRANT ALTER, CREATE, SELECT, INSERT, DELETE ON " + dbName + ".* TO '" + globalUser + "'@'%s'" % ( + cursor.execute("GRANT INDEX, REFERENCES, PROCESS, RELOAD, DROP, UPDATE, ALTER, CREATE, SELECT, INSERT, DELETE ON " + dbName + ".* TO '" + globalUser + "'@'%s'" % ( mysqlUtilities.LOCALHOST)) connection.close()