• MariaDB 开启密码复杂度审计和密码过期


    #安装启用
    INSTALL SONAME 'simple_password_check';
    #检查验证
    show variables like '%password%';
    +-----------------------------------------+-------+
    | Variable_name                           | Value |
    +-----------------------------------------+-------+
    | default_password_lifetime               | 30    |
    | disconnect_on_expired_password          | OFF   |
    | max_password_errors                     | 5     |
    | old_passwords                           | OFF   |
    | report_password                         |       |
    | simple_password_check_digits            | 1     |
    | simple_password_check_letters_same_case | 1     |
    | simple_password_check_minimal_length    | 8     |
    | simple_password_check_other_characters  | 1     |
    | strict_password_validation              | ON    |
    +-----------------------------------------+-------+

    配置文件设置方式

    [mysqld]
    #加载密码复杂度审计插件
    plugin-load=simple_password_check.so
    #密码长度,默认8位
    simple_password_check_minimal_length=8
    #特殊符号,1代表至少1位
    simple_password_check_other_characters=1
    #字母数,1代表至少1位
    simple_password_check_letters_same_case=1
    #数字数,1代表至少1位
    simple_password_check_digits=1
    #默认密码过期时间 单位天 每过180天就要修改密码
    default_password_lifetime=180
    #最大错误登录次数
    max_password_errors=5
  • 相关阅读:
    python常用运维脚本实例
    数据库优化方案整理
    Python第一章概述与环境安装
    九阴真经
    常用的kubectl命令
    第7篇管理存储资源
    第8篇NFS PersistentVolume
    第10篇用 ConfigMap 管理配置
    第11篇Kubernetes部署微服务电商平台
    第12篇Kubernetes 监控
  • 原文地址:https://www.cnblogs.com/kgdxpr/p/16784418.html
Copyright © 2020-2023  润新知