Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.5 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

Recover admin account [closed]

Hello! Suddenly I can no t login via web to our OCS server.

I have access to myslq console and the operators table is empty!

How could I create an admin account using mysql?

Thanks!
closed with the note: Problem solved
asked in OCS Inventory NG server for Unix by (200 points)
closed by

1 Answer

+2 votes
I was able to set new admin account with password "admin".

Login to mysql:

mysql> use ocsweb;

mysql> INSERT INTO `operators` (`ID`, `FIRSTNAME`, `LASTNAME`, `PASSWD`, `ACCESSLVL`, `COMMENTS`, `NEW_ACCESSLVL`, `EMAIL`, `USER_GROUP`) VALUES ("admin", "name", "surname", `21232f297a57a5a743894a0e4a801fc3`, 1, "Default administrator account", "sadmin", "email@email.com", "");
answered by (200 points)
 
Powered by Question2Answer
...