在openGauss数据库中,password_effect_time是一个重要的安全参数,用于控制用户密码的有效期。下面是对该参数及其配置的详细解释: 1. password_effect_time的作用password_effect_time用于指定用户密码的有效期。一旦密码超过了这个设置的有效期,用户在下一次登录时会被提示修改密码。这个机制有助于提高数据库的安全性,防...
openGauss=# DROP WEAK PASSWORD DICTIONARY; 密码重用用户修改密码时,只有超过不可重用天数(password_reuse_time)或不可重用次数(password_reuse_max)的密码才可以使用。参数配置说明如表2所示。 说明: 不可重用天数默认值为60天,不可重用次数默认值是0。这两个参数值越大越安全,但是在使用过程中会带来不便,其...
openGauss=# SHOW password_effect_time; password_effect_time --- 90 (1 row) 如果显示结果不为90,执行“\q”命令退出数据库。 3. 执行如下命令设置成默认值90(不建议设置为0)。 gs_guc reload-N all-I all-c"password_effect_time = 90" 配置password_notify_time参数。 1. 使用如下命令连接数据库。
openGauss=# SHOW password_effect_time;password_effect_time ---90 (1 row) 如果显示结果不为90,执行“\q”命令退出数据库。 执行如下命令设置成默认值90(不建议设置为0)。 gs_guc reload -D /gaussdb/data/datanode -c"password_effect_time = 90" 配置password_notify_time参数。 使用如下命令连接数据库。
show password_effect_time; #结果也是90,也就是默认注释的情况下,密码有效期依旧是90 2、更改linux虚拟机的时间 首先把时间同步停掉 systemctl stop ntpd date -s '20230628' #时间调整到三个月以后 su - omm gs_om -t restart #重启数据库 使用用户登录 ...
openGauss学习笔记-115 openGauss 数据库管理-设置安全策略-设置密码安全策略,用户密码存储在系统表pg_authid中,为防止用户密码泄露,openGauss对用户密码进行加密存储,所采用的加密算法由配置参数password_encryption_type决定。
password_effect_time 密码的有效期限。 password_notify_time 密码到期提醒的天数。 audit_enabled 控制审计进程的开启和关闭。 audit_directory 审计文件的存储目录。 audit_data_format 审计日志文件的格式,当前仅支持二进制格式(binary)。 audit_rotation_interval 指定创建一个新审计日志文件的时间间隔。当现在的时间...
password_lock_time 密码锁定时间,设置为0时表示即使超过密码错误次数限制导致帐户锁定,也会在短时间内自动解锁 gs_guc set -I all -N all -c "password_lock_time=0" password_effect_time 密码有效期,0表示不开启有效期限制功能,单位为天 gs_guc set -I all -N all -c "password_effect_time=0" ...
#password_effect_time = 90d#The password effect time(0-999) #password_notify_time = 7d#The password notify time(0-999) ... 重启服务 [omm@node0 dn]$ gs_om -t stop Stopping cluster. === Successfully stopped cluster. === End stop cluster. [omm@node...
#password_min_special = 0 #The minimal special character number in password(0-999) #password_effect_time = 90d #The password effect time(0-999) #password_notify_time = 7d #The password notify time(0-999) ... 1. 2. 3. 4.