I have phpmyadmin 3.4 installed on Ubuntu.
Now I simply want to disable a user (such as theuser) logging in through the phpmyadmin page, and in the meantime, allow the user logging in on localhost. Is there a way?
Press Win+R, enter “netplwiz“, which will open the “User Accounts” window. Netplwiz is a Windows utility tool for managing user accounts. Check the option for “Users must enter a username and password to use this computer” and click Apply. That's it.
Click Start > Administrative Tools > Remote Desktop Services > Remote Desktop Session Host Configuration. On the Edit Settings pane, under General, double-click Restrict each user to a single session.
If you can find your config.inc.php in your installation, under the config for your particular server, add this
/* block SOME users */
$cfg['Servers'][$i]['AllowRoot'] = false;
$cfg['Servers'][$i]['AllowDeny']['order'] = 'deny,allow';
$cfg['Servers'][$i]['AllowDeny']['rules'] = array(
'deny theuser1 from all',
'deny theuser2 from all'
);
This will disable using phpmyadmin as root, theuser1 or theuser2. Nothing else changes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With