phpmyadmin privileges to change users - permissions

I recently logged into myphpadmin through the xampp control panel so that I could add a new user to a database. I logged in as root as I always have but now I get a warning that says "You do not have the privileges to administrate the users!" My config.inc.php has the 'auth_type' set to config. I tried setting it to "cookie" and "http" as I found as suggestions on here but it doesn't seem to change anything. I need to be able to add users and change permissions. Any ideas?

I was eventually able to work this out by logging into phpMyAdmin and then typing the following into the SQL cmd window:
GRANT ALL PRIVILEGES ON *.* TO 'root'#'localhost'; FLUSH PRIVILEGES;
Hopefully this will help someone else having this problem as well.

Related

What should the permissions and ownership for Drupal on LAMP stack?

What has me confused is why a directory or part of my Drupal site to suddenly return the message of "Forbidden" - that I, as first use, cannot access various parts of the site in the admin area. I changed the permission on the default/sites/files directory to 777. That probably is giving to too much access to everyone. However, it was only after doing that, that I got a message of Forbidden - that I don't have access to various parts of the admin area. I am the first user.
I changed the permissions on this directory because when I tried to update some modules, I got an error that file could not be created.
I have cpanel/whm on a dedicated vps server. So, one issue is how to find out what the user and group ownership should be on a server that hosts various domains through cpanel. It appears that for other accounts have user:owner permissions that match the account name. I am not sure if the default group:owner should remain as www-data:www-data for example, on Ubuntu or if cpanel/whm says, "make the apache group and user equal to the account name."
Thanks in advance for any help,
Bruce
First of all, I'm going to assume you're talking about Drupal 7, but really, there's little difference in this case.
Try reading about permissions here
Its very simple that the folder should have user:user ownership and correct permissions with folders having 755 permissions respectively. The server might be running on suphp hence you cannot have wrong user with wrong permissions.

Creating databases and tables in ssms

I just installed ssms on my local computer.
When I try to create a database or a database table it gives me an error stating that I don't have the right permissions. I tried granting permissions for this user by going to Security->Logins->myUser. But again it told me I didn't have the right permissions. I then tried adding a new login/user which gave me the same error.
What can I do to give myself the correct permissions if I installed the ssms and there are no other users except sa, which has "login with this user" disabled by default. I can't login as another user and I can't change my current user permissions. VERY CONFUSED - someone please help!
During the installation you (or somebody else) had to add an user besides the SA to login with Windows authentication. Use this user.
Your user is a simple user that does not have enough permissions.
If you are not the guy who installed the server, ask whoever installed this to set the right permission for your user.
Also please check recover-sa-password and Disaster Recovery: What to do when the SA account password is lost in SQL Server 2005
You should check that you are placing the files in a folder where the SQL Server account (not the one you are logging on as, but the service account) has rights to write.
For starters, and not to be kept in a production environment, try to make sure that the default path for placing the database files has Read/Write set to Everyone.

cannot access mysql from phpmyadmin

I'm working on a dedicated OVH server, after installing everything needed (mysql, apache, php etc.) i've installed phpmyadmin (tried with adminer too) but it cannot access to the database.
Each time I try to login I get a #1045 error
Access denied for user 'root'#'localhost' (using password: YES)
The trouble is that, when running the installation, phpmyadmin asked me to define a password for a phpadmin user, and this user is now the only one allowed to connect, even root can't.
The phpmyadmin user created have no rights and therefore can't create database or such. I would like to allow any user defined to login into phpmyadmin.
The auth_type i'm using is 'cookie'.
PS: when I login on command line everything works great.
EDIT: Ok it seems that the password i used prevented me to login to phpmyadmin UI (unallowed character ?) I was using characters like > < ° ( ) so I changed the password and everything works great.
Can someone confirm that some characters prevent phpmyadmin from logging in ?
Check in phpMyAdmin's config file, see if the password in it is correct.
Alternatively, if your root doesn't have a password (assuming that this is a test DB), remove the password present in phpMyAdmin's config file.

How to disable root login on Virtualmin

I’m using a vanilla Webmin / Virtualmin 3.93 GPL version on Centos 6. I’ve created a new user that has full privileges on Webmin, so now I want to disallow root from logging in, as obviously it could be a security issue.
Does anyone know how to do this? There must be an option for this somewhere but maybe I can’t see the wood for the trees.
I’ve disabled root SSH login manually, but I still can login to Webmin using the root account.
Thanks to #Charles for the pointers.
To remove the root user from Webmin, log in as a user with administrator privileges and click on Webmin -> Webmin Users.
In the list of users, either delete or remove all privileges from the root user.
After removing that user I could log in as my new administrator user and administer the server but not log in as root.
Problem solved, security through obscurity but still better than nothing.
Click on the Webmin tab, expand the Webmin section and select Webmin User. Then select the root user. Expand Security and Limit Options and select Only allow from listed addresses for IP Access Control. Enter the loopback address(127.0.0.1) into the field. The root user will still exist, but will be unable to login.
In Webmin -> Webmin Users click root and rename it to the username you use.

phpmyadmin bummer

I think i did some nasty crap today...
I deleted the user (admin root) in phpmyadmin (XAMPP)
now I can't create new users.
Any idea how to fix, or should I just try re-install the hole XAMPP packet :-/
I use Leopard iMac.
/Willy
There is a method for resetting permissions in the MySQL manual. It deals with resetting the root password rather than recreating the root account, however I think you should be able to modify the method to re-insert the root account without any trouble.
Following the steps listed there (either method), if you change step 3 to insert a new account (fields might vary, this worked for my particular install):
INSERT INTO user VALUES('localhost','root',PASSWORD('some_pass'),'Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');
FLUSH PRIVILEGES;
You should be able to take it from there and get the permissions back up to snuff.