I will add hotspot users with uci commands (username, group ) , but I don’t know how to hash the user password.
With “uci show” command, I see:
Could you please tell me how to hash the password before inserting the new user ?
You can use openssl which is already installed:
uci add chilli user
uci set chilli.@user[-1].username='user1'
#dont forget to add a pinch of salt (the password will be 'pass1' in this case)
openssl passwd -1 -salt abcd pass1
uci set chilli.@user[-1].password='$1$abcd$PDaCHs3hGO3GYSrsEZtAl/'
uci set chilli.@user[-1].group='default'
This topic was automatically closed after 15 days. New replies are no longer allowed.