How to recover a lost password of system user

Hello,

I have tried to recover lost password of system user but unable to recover.

$ ./cypher-shell -d system

Connected to Neo4j 4.0.2 at neo4j://localhost:7687 .

Type :help for a list of available commands or :exit to exit the shell.

Note that Cypher queries must end with a semicolon.

@system> ALTER USER system SET PASSWORD 'neo4jsys';

Failed to alter the specified user 'system': User does not exist.

Please let me know that how rcover system user password.

1 Like

You can use neo4j-admin set-initial-password to reset the password.
If there is no default admin you can set it with neo4j-admin set-default-admin

1 Like