You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2010-05-06 02:06:43

carias
Member
From: Bogotá, Colombia
Registered: 2010-04-23
Posts: 12
Website

Recover superadmin user that I changed accidentaly to postonly

I was writing a manual for GLPI helpdesk and created a usar called super2 because I already have my super admin user called super to test functions. When I was creating the new user I checked for it and accidentaly let super-admin as post-only. Now I can not enter in GLPI. How can I revert this situation?


Carlos Arias

Offline

#2 2010-05-06 07:01:45

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: Recover superadmin user that I changed accidentaly to postonly

You must edit the glpi_profiles table manually.

For GLPI 0.72.3 or 0.72.4 only :

REPLACE INTO `glpi_profiles` VALUES ('4','super-admin','central','0','w','w','w','w','w','w','w','w','w','w','w','w','w','w','w','w','1','w','r','w','r','w','w','w','w','w','w','w','w','w','w','w','w','w','r','w','w','w','w','w','w','r','w','w','w','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','3','8388674','0','0','w','w');

+


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#3 2010-05-06 14:40:59

carias
Member
From: Bogotá, Colombia
Registered: 2010-04-23
Posts: 12
Website

Re: Recover superadmin user that I changed accidentaly to postonly

Thank you for yor answer but sorry by my ignorance. Is glpi_profiles a table that I need to alter through MySQL commands?
How do I add a new user with super-admin profile if I only have admin users at this moment?
Thanks in advance again. I am very worried because GLPI is keeping information about 500 PC and I can not access it like super-admin user anymore.


Carlos Arias

Offline

#4 2010-05-07 11:04:10

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Recover superadmin user that I changed accidentaly to postonly

carias wrote:

Is glpi_profiles a table that I need to alter through MySQL commands?

Yes (Remi give you the rignt command)

carias wrote:

How do I add a new user with super-admin profile if I only have admin users at this moment?

You alter glpi_profiles and you'll have your user "super-admin"


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

Board footer

Powered by FluxBB