The first time you log into the web console, the program will ask you to set a password for the administrator.
Password strength
To check the strength of a password, iBatyr Monitor uses the open-scource utility zxcvbn.
The main advantages of zxcvbn compared to standard password strength policies:
security: unlike standard policies, zxcvbn does not allow weak passwords that meet standard criteria (P@ssword1);
flexibility: zxcvbn checks for unusual words in the password, the distance between keys and rotation angles when typing a password, which allows you to use different styles when creating passwords;
convenience: the interface for interacting with zxcvbn is simple and does not contain anything superfluous.
Password strength levels
When setting a password, its strength level is checked. The new password entry field is highlighted in the appropriate color:
Level |
Description |
Color |
|---|---|---|
0 |
Very weak |
Red |
1 |
Weak |
Yellow |
2 |
Average |
Olive |
3 |
Good |
Green |
4 |
Great |
Green |
You can set the minimum acceptable level of reliability in the file /usr/share/ibatyr/settings.py in the line MIN_PASSWORD_SCORE =. The default level is 2.
Protection against password guessing for the web console
To activate protection use the command
ibatyr enable fail2ban
After executing the command, a dialog will open in which you will need to specify:
number of incorrect password entries;
the time for which erroneous entries are tracked;
the time for which the IP address from which erroneous entries were made is blocked.
To disable protection use the command
ibatyr disable fail2ban
Password recovery
To recover or change the password for the web interface, enter the command in the console
sudo ibatyr passwd NEWPASSWD
where NEWPASSWD is the new password for the web console superuser admin.