Reset 2FA for Cluster admin page

,

NethServer Version: 8
Module: cluster-admin

Hi team,

I have lost access to my 2FA for the cluster-admin page.
How can I reset this ?

Kind regards, Klaas-Jan

https://docs.nethserver.org/projects/ns8/en/latest/cluster.html#reset-the-cluster-administrator-password

Reset the cluster administrator password

If you are locked out of the web user interface and you can still access a system command-line shell as root (e.g. by the system recovery console or SSH), run the following command to disable 2FA and reset the password:

api-cli run alter-user --data '{"user":"admin","set":{"password":"Nethesis,1234","2fa":false}}'

Replace the admin and Nethesis,1234 default credentials as needed.

5 Likes

Hi dnutan,

Thanks, completely overlooked that one in the documentation :slight_smile:

Kind regards, Klaas-Jan

1 Like