Help Center> Host Security Service (Old)> FAQs> Others> How Do I Enable Logging for Login Failures?
Updated on 2022-08-11 GMT+08:00

How Do I Enable Logging for Login Failures?

MySQL

The account hacking prevention function for both Windows and Linux OSs supports MySQL 5.6 and 5.7. Perform the following steps to enable logging for login failure:

  1. Log in to the host as the root user.
  2. Run the following command to query the log_warnings value:

    show global variables like 'log_warnings'

  3. Run the following command to change the log_warnings value:

    set global log_warnings=2

  4. Modify the configuration file.

    • For a Windows OS, modify the my.ini file by adding log_warnings=2 to [mysqld].
    • For a Linux OS, modify the my.conf file by adding log_warnings=2 to [mysqld].

Filezilla

In the account cracking prevention function of HSS, only Windows OSs support FileZilla 0.9.60. Logging is disabled in FileZilla by default.

To enable the logging function, perform the following steps:

  1. Open FileZilla.
  2. Choose Edit > Settings > Logging and select Enable logging to file (see Figure 1).

    Figure 1 Enabling logging in FileZilla

vsftp

This section shows you how to enable logging for vsftp login failures.

  1. Modify the configuration file (for example, /etc/vsftpd.conf) and set the following parameters:

    vsftpd_log_file=log/file/path

    dual_log_enable=YES

  2. Restart the vsftp service. If the setting is successful, log records shown in the logs shown in Figure 2 will be returned when you log in to vsftp.

    Figure 2 Log records

Others FAQs

more