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.11.1 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?

closed with the note: Problem solved
in OCS Inventory NG server for Unix by (180 points)
closed by

1 Answer

+1 vote
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", "");
by (180 points)
Powered by Question2Answer