If you're building your own firmware image, you should be doing this during
compile time.

You could do it via templates only if the /etc/shadow file is the same for
all your devices, in that case simply set the password you need to one of
your devices, copy /etc/shadow from that device and define a default
template in openwisp with a file that has /etc/shadow as path and its
contents, assign it to every device but only after having tested it on at
least one device.

This should do it.

BTW, changing passwords via OpenWISP will also be possible but only at 1
device at time, by using the commands feature which will be shipped in the
future 1.0.x series, but the code is already working (to the best of my
knowledge) and available here:
https://github.com/openwisp/openwisp-controller/pull/421

Best regards
Federico Capoano


On Wed, Apr 28, 2021 at 7:52 AM <[email protected]> wrote:

> hi, is it possible to create a template to set a password for all Openwrt
> APs for both the ssh connection (es. with Putty and ap ip address) and the
> webpanel (http: // ap ip address)?
>
> --
> You received this message because you are subscribed to the Google Groups
> "OpenWISP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/openwisp/1a7001d73c2d%244a7efc70%24df7cf550%24%40gmail.com
> <https://groups.google.com/d/msgid/openwisp/1a7001d73c2d%244a7efc70%24df7cf550%24%40gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/openwisp/CAAGgX6KTamOJW2S2d9ChawFR3hpF%3DCz6fHGCH_zhbB1Xq15MCg%40mail.gmail.com.

Reply via email to