HowTo: Disallow access to phpMyAdmin for a specific user

ProWebUK

Verified User
Joined
Jun 9, 2003
Messages
2,326
Location
UK
Simple guide to disallowing access to phpMyAdmin for a specific user:

# pico -w /var/www/html/phpmyadmin*VERSION*/config.inc.php

After one of the sections (eg mysql settings) add the section:

Code:
   'OTHER SETTINGs'
);
[B]
//block user from logging into phpMyAdmin
$cfg['Servers'][$i]['AllowDeny']['order'] = 'deny,allow';
$cfg['Servers'][$i]['AllowDeny']['rules'] = array(
'deny *USER* from all',
); 
[/B]

// another section....

Replace the *user* with the username you wish to remove access from.

Chris
 
Back
Top