Защита паролем wb6

Решил установить пароль по инструкции: https://wirenboard.com/wiki/index.php/Защита_паролем
сделал второй шаг и теперь WB6 перезагружается по кругу. Только подключусь по ssh и сразу выкидывает.

лог из консоли:

login as: root
root@192.168.1.169’s password:
Linux wirenboard-A6AM6Z3X 4.9.22-wb6 #2 SMP Sat Sep 1 16:34:31 UTC 2018 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Oct 4 04:15:17 2018 from 192.168.99.77
root@wirenboard-A6AM6Z3X:~# su
root@wirenboard-A6AM6Z3X:~# apt-get update
Ign:1 http://mirror.yandex.ru/debian stretch InRelease
Get:2 http://mirror.yandex.ru/debian stretch-updates InRelease [91.0 kB]
Get:3 http://security.debian.org stretch/updates InRelease [94.3 kB]
Get:5 http://mirror.yandex.ru/debian stretch Release [118 kB]
Get:6 http://releases.contactless.ru/stable/stretch stretch InRelease [10.6 kB]
Get:7 http://mirror.yandex.ru/debian stretch Release.gpg [2434 B]
Get:4 http://cdn-fastly.deb.debian.org/debian stretch-backports InRelease [91.8 kB]
Get:8 http://mirror.yandex.ru/debian stretch-updates/main armhf Packages [5112 B]
Get:9 http://mirror.yandex.ru/debian stretch-updates/main Translation-en [4512 B]
Get:10 http://security.debian.org stretch/updates/main armhf Packages [432 kB]
Get:11 http://security.debian.org stretch/updates/main Translation-en [192 kB]
Get:12 http://releases.contactless.ru/stable/stretch stretch/main all Packages [26.9 kB]
Get:13 http://releases.contactless.ru/stable/stretch stretch/main armhf Packages [71.9 kB]
Get:14 http://mirror.yandex.ru/debian stretch/main armhf Packages [6927 kB]
Get:15 http://cdn-fastly.deb.debian.org/debian stretch-backports/main armhf Packages [440 kB]
Get:16 http://cdn-fastly.deb.debian.org/debian stretch-backports/main Translation-en [339 kB]
Get:17 http://mirror.yandex.ru/debian stretch/main Translation-en [5393 kB]
Fetched 14.2 MB in 39s (357 kB/s)
Reading package lists… Done
root@wirenboard-A6AM6Z3X:~# apt-get install nginx-extras mosquitto wb-configs wb-mqtt-homeui
Reading package lists… Done
Building dependency tree
Reading state information… Done
mosquitto is already the newest version (1.4.15-1+wb7-3).
nginx-extras is already the newest version (1.6.2-5+deb8u2~bpo70+3).
nginx-extras set to manually installed.
wb-configs is already the newest version (1.77.1).
wb-mqtt-homeui is already the newest version (1.7).
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
root@wirenboard-A6AM6Z3X:~# service mosquitto restart
root@wirenboard-A6AM6Z3X:~# service nginx restart
root@wirenboard-A6AM6Z3X:~# mc

/usr/bin/select-editor: 1: /usr/bin/select-editor: gettext: not found
‘select-editor’.
/usr/bin/select-editor: 1: /usr/bin/select-editor: gettext: not found

  1. /bin/nano <----
  2. /usr/bin/mcedit
  3. /usr/bin/vim.basic

/usr/bin/select-editor: 32: /usr/bin/select-editor: gettext: not found
1-3 [1]: 2

root@wirenboard-A6AM6Z3X:/etc/mosquitto/conf.d#
root@wirenboard-A6AM6Z3X:/# service mosquitto restart
Job for mosquitto.service failed because the control process exited with error code.
See “systemctl status mosquitto.service” and “journalctl -xe” for details.
root@wirenboard-A6AM6Z3X:/#

я изменил вот так:
меняем содержимое на

#change 0.0.0.0 to to limit listener to localhost

#listener 1883 0.0.0.0
listener 1883 127.0.0.1

example:

#listener 1883 0.0.0.0

#change 0.0.0.0 to 127.0.0.1 to limit listener to localhost

#listener 1883 0.0.0.0
listener 18883 127.0.0.1
protocol websockets

Что я сделал не верно и как это можно поправить?

Подключился через отладочный порт. Вот что видно:
root@wirenboard-A6AM6Z3X:/etc# [ 84.143691] systemd-journald[141]: Received SIGTERM from PID 1035 (watchdog).
[ 85.281165] systemd[1]: Reexecuting. 6RenMov 7Mkdir 8Delete 9PullDn10Quit
[ 85.351179] systemd: 22 output lines suppressed due to ratelimiting
[ 86.252756] RTL871X: nolinked power save enter
[ 89.234227] EXT4-fs (mmcblk0p3): re-mounted. Opts: (null)
[ 90.082305] RTL871X: RTW_ADAPTIVITY_EN_[ 90.085997] AUTO, chplan:0x20, Regulation:3,3
[ 90.090442] RTL871X: RTW_ADAPTIVITY_MODE_[ 90.094282] NORMAL
[ 90.518139] RTL871X: nolinked power save leave
[ 91.759136] gpio-wdt watchdog: Timer expired. System will reboot soon!
[ 94.652769] RTL871X: nolinked power save enter

при загрузке

[ OK ] Reached target Host and Network Name Lookups.
[FAILED] Failed to start Mosquitto MQTT v3.1/v3.1.1 Broker.
See ‘systemctl status mosquitto.service’ for details.
[ OK ] Started LSB: Brings up/down network automatically.
[ OK ] Stopped Mosquitto MQTT v3.1/v3.1.1 Broker.
Starting Mosquitto MQTT v3.1/v3.1.1 Broker…
[FAILED] Failed to start Mosquitto MQTT v3.1/v3.1.1 Broker.
See ‘systemctl status mosquitto.service’ for details.
[ OK ] Reached target Multi-User System.
Starting watchdog daemon…
[ OK ] Stopped Mosquitto MQTT v3.1/v3.1.1 Broker.
Starting Mosquitto MQTT v3.1/v3.1.1 Broker…
[ OK ] Started watchdog daemon.
[ OK ] Reached target Graphical Interface.
Starting Update UTMP about System Runlevel Changes…
[FAILED] Failed to start Mosquitto MQTT v3.1/v3.1.1 Broker.
See ‘systemctl status mosquitto.service’ for details.
[ 28.969506] fec 2188000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[ 28.977465] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ OK ] Started Update UTMP about System Runlevel Changes.

Debian GNU/Linux 9 wirenboard-A6AM6Z3X ttymxc0

перезагружает контроллер watchdog как я понимаю из за того что не отвечает Mosquitto MQTT .

сразу после загрузки остановите watchdog и смотрите в логе, почему moquitto не стартует

Подскажите как остановить и потом запустить watchdog?

systemctl stop watchdog
systemctl start watchdog

1 лайк

поправил содержимое /etc/mosquitto/conf.d/listeners.conf и все заработало.

Спасибо.

Меняю пароль для root по инструкции:

Смена пароля

Пароль меняется командой

printf “root:openssl passwd -apr1\n” > /etc/nginx/passwd

Здесь вместо root можно придумать любое другое имя пользователя

После ввода команды запрашивает новый пароль, подтверждение
Однако после перезагрузки все-равно используется старая пара по умолчанию.

Проверьте пожалуйста!

Затем сделал перед этим еще

Пункт 4
  1. Активируем глобальную аутентификацию

root@wirenboard:~# ln -s /etc/nginx/sites-available/global_auth /etc/nginx/sites-enabled
root@wirenboard:~# service nginx reload
Дефолтный логин-пароль root/wirenboard

Все-равно ничего не изменилось.

Только в файле /etc/nginx/passwd появилось

root:$apr1$AC8OGV.z$tnBCOvZClx01tsjXt/.Fa/

Здравствуйте!
Уточните пожалуйста, вы пароль для браузера хотите установить или для консоли?
https://wirenboard.com/wiki/index.php?title=Защита_паролем. Пройдите все пункты еще раз .

Неожиданно обратил внимание, что пароль по последним 2-м пунктам встал на браузер.
Предполагалось, что для консоли.
Как можно изменить пароль для консоли?

Оказалось все просто:

passwd
1 лайк

Добавлю в эту ветку, т.к. тема та же самая.
Сделал по инструкции - https://wirenboard.com/wiki/index.php/Защита_паролем

Шаг 3 в момент загрузки прошел. Но теперь, после перезагрузки WebUI не работает.
В чем может быть проблема?
Стоит пароль на nginx и mosquitto крутится на 127.0.0.1