How to reset luci password from ssh

openwrt

Solution

You can change root password use `passwd` command via ssh. Normally,the root password is luci password.

\# passwd

Changing password for root

New password: 

Problem

I have forgotten my luci password, but can get in via ssh. How do I reset the luci password from the console? I see that in /etc/config/luci there is this: ``` config extern 'flash_keep' ... option passwd '/etc/passwd' ... ``` So is it done with the regular passwd command?

Original source