New Luci User Creation from SSH

Hi All ,
I want to create new Luci User from CLI,
I have already done following Process.

root@openwrt:~# uhttpd -m test
$1$$whuMjZj.HMFoaTaZRRtkO0

root@openwrt:~# uci add rpcd login
cfg05f8be
root@openwrt:~# uci set rpcd.@login[-1].username='test
root@openwrt:~# uci set rpcd.@login[-1].timeout='300'
root@openwrt:~# uci add_list rpcd.@login[-1].read='*'
root@openwrt:~# uci set rpcd.@login[-1].password='$1$$whuMjZj.HMFoaTaZRRtkO0'
root@openwrt:~# uci commit
root@openwrt:~# /etc/init.d/rpcd reload

With above config, i get Wrong password Error,
What need to be done Additionally.

Thanks for Your Help

Does the test user exist?
https://openwrt.org/docs/guide-user/additional-software/create-new-users

1 Like

@trendy
I just need to create user for luci for which auth gets handled by rpcd only,
so it will not matter if user exists in passwd or not
im using luci-app-acl

Open /etc/config/rpcd in SSH and double-check that the configuration was updated with your test user correctly.

I don't think config login accepts a timeout option, although I could be mistaken. Can you remove that and see if it works?

tried removing timeout oprion, didnt work