Jumpserver admin 密码过期 (完成)

Jumpserver 使用 django 运行的

执行如下sql

mysql jumpserver -e "select username,date_expired,date_password_last_updated from users_user where username='admin';"

mysql jumpserver -e "update users_user set date_password_last_updated='2022-10-24' where username='admin';"

(py3) [root@VM_201_10_centos apps]# mysql jumpserver -e "select username,date_expired,date_password_last_updated from users_user where username='admin';"
+----------+----------------------------+----------------------------+
| username | date_expired               | date_password_last_updated |
+----------+----------------------------+----------------------------+
| admin    | 2088-12-09 03:38:00.000000 | 2022-07-24 00:00:00.000000 |
+----------+----------------------------+----------------------------+
(py3) [root@VM_201_10_centos apps]# 
(py3) [root@VM_201_10_centos apps]# mysql jumpserver -e "update users_user set date_password_last_updated='2022-10-24' where username='admin';"
(py3) [root@VM_201_10_centos apps]# 
(py3) [root@VM_201_10_centos apps]# mysql jumpserver -e "select username,date_expired,date_password_last_updated from users_user where username='admin';"
+----------+----------------------------+----------------------------+
| username | date_expired               | date_password_last_updated |
+----------+----------------------------+----------------------------+
| admin    | 2088-12-09 03:38:00.000000 | 2022-10-24 00:00:00.000000 |
+----------+----------------------------+----------------------------+

你可能感兴趣的:(Jumpserver admin 密码过期 (完成))