Skip to content

Instantly share code, notes, and snippets.

@rdapaz
Created April 26, 2022 15:29
Show Gist options
  • Save rdapaz/54bedd707146ec0d1995804aaab21148 to your computer and use it in GitHub Desktop.
Save rdapaz/54bedd707146ec0d1995804aaab21148 to your computer and use it in GitHub Desktop.
Restore web admin username and password on eve-NG

Eve-NG

Problem

Trying to reset admin password on eve-ng according to FAQs. However, FAQs seem to be cutting short the bit instructing users on how to repopulate the users table after deleting its contents:

For Professional Edition (if you have EVE Pro Version 2.0.4-97 and higher), type the next 2 command lines in EVE NG CLI as Root user:

echo "DELETE from users where username = 'admin';" | mysql --host=localhost --user=root --password=eve-ng eve_ng_db

This second one is ellided on the new web site, but this is what it should say:

echo "INSERT INTO users VALUES ('admin',NULL,'root@localhost',-1,'Eve-NG Administrator','85262adf74518bbb70c7cb94cd6159d91669e5a81edf1efebd543eadbda9fa2b',NULL,'','admin','',0,-1,'internal',-1,-1,0,-1);" | mysql --host=localhost --user=root --password=eve-ng eve_ng_db

Note Schema of eve_ng_db users table:

![[Pasted image 20220426230612.png]]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment