Здравствуйте.
Установил monitorix, все работает. Хочу подключаться с паролем. На сайте monitorix нашел это
htpasswd
This option sets the path to the password file that was created with the help of the htpasswd.pl script. That script encrypts and validates passwords using the system’s crypt() routine. If your Monitorix package doesn’t come with that script, you may use the similar htpasswd(1) program provided with the Apache web server.
The format of the password file consist of one or more lines with a username and password separated by a colon.
The following is an example of a password file:
paul:oGkEsQK6RYIII
peter:HF1r7qRL4Kg6E
Since the script uses the crypt() algorithm, only the first 8 characters of the password are used to form the password. If the supplied password is longer, the extra characters will be silently discarded.
WARNING: don’t use the character colon ’:’ as part of your name or password since this character is used as field separator.
Default value: /var/lib/monitorix/htpasswd
Внес по образцу в /var/lib/monitorix/htpasswd qq:qq, окно с паролем и логином есть, но зайти не могу. Что не так? Прочел что в файле htpasswd должна быть точка - должна или нет?
Спасибо.
Пользователь добавил сообщение 02 Апреля 2016, 11:36:25:
Разобрался.
Для установки пароля нужно использовать
htpasswd -c -d /var/lib/monitorix/htpasswd [тут пишем имя пользователя]
видим это
New password: [вводим пароль]
Re-type new password: [повтор пароля]
Потом - service monitorix restart
Все.