Reset GUI password from CLI


I have access to the router (AR300M) via ssh.
I can login as root successfully.
But I forgot the password of the GUI (
I don’t have physical access to the router and nobody has it.

I would like to know if there is a way to reset the GUI password from the CLI as root.

The admin password in the GUI is “normally” the same as the root password in SSH.

Let me give you a method privately.