Bug 71161

Summary: [PATCH] Incorrect rights for setup devel/bugzilla
Product: Ports & Packages Reporter: Dmitry A Grigorovich <odip>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Dmitry A Grigorovich 2004-08-30 20:30:25 UTC
File /usr/ports/devel/bugzilla/pkg-message have incorrect right
for setup bugzilla:

  1. Create database user who has rights on bugs database manipulation
     by following mysql commands:

     GRANT SELECT,INSERT,UPDATE,DELETE,INDEX, ALTER,CREATE,DROP,REFERENCES \
           ON <database>.* TO <dbuser>@<host> IDENTIFIED BY '<password>';

====

On first login in bugzilla I found,
that also needed LOCK TABLES for this list or rights

Fix: Apply patch



Now you are known what rights needed :)
Change rights and bugzilla worked--zBNhBXEhbo1dWMXtWTjRn5kh262NWXFJQhcRZfqYUFnbDGHw
Content-Type: text/plain; name="diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="diff"

--- pkg-message	Fri Jul 23 13:41:02 2004
+++ pkg-message.new	Tue Aug 31 02:15:51 2004
@@ -4,8 +4,9 @@
   1. Create database user who has rights on bugs database manipulation
      by following mysql commands:
 
-     GRANT SELECT,INSERT,UPDATE,DELETE,INDEX, ALTER,CREATE,DROP,REFERENCES \
-           ON <database>.* TO <dbuser>@<host> IDENTIFIED BY '<password>'; 
+     GRANT SELECT,INSERT,UPDATE,DELETE,INDEX,ALTER,CREATE,DROP,REFERENCES,\
+	   LOCK TABLES ON <database>.* TO <dbuser>@<host> \
+	   IDENTIFIED BY '<password>'; 
      FLUSH PRIVILEGES;
 
      where <database> is a bugs database name; <dbuser> is a bugs database
How-To-Repeat: 
Install mysql40

Install devel/bugzilla
Configure bugzilla via ./checksetup.pl
After complete you will be have administrator with password
Login as administrator in bugzilla
You are get error about LOCK TABLES in global.pl
Comment 1 Dmitry A Grigorovich 2004-08-30 21:42:11 UTC
More correctly:

If you are using MySQL 4.0 or newer, enter: 

mysql> GRANT SELECT,INSERT,UPDATE,DELETE,INDEX, ALTER,CREATE,DROP,LOCK
TABLES,CREATE TEMPORARY TABLES,REFERENCES ON bugs.* TO bugs@localhost
IDENTIFIED BY '<bugs_password>';  
mysql> FLUSH PRIVILEGES;  

If you are using an older version of MySQL, the LOCK TABLES and CREATE
TEMPORARY TABLES permissions need to be removed from the list: 

mysql> GRANT SELECT,INSERT,UPDATE,DELETE,INDEX, ALTER,CREATE,DROP,REFERENCES
ON bugs.* TO bugs@localhost IDENTIFIED BY '<bugs_password>';  
mysql> FLUSH PRIVILEGES;  

[ODiP] == Dmitry Grigorovich
Comment 2 Pav Lucistnik freebsd_committer freebsd_triage 2004-10-27 20:24:13 UTC
State Changed
From-To: open->closed

Committed, thanks!