Jumpserver 数据库修改密码过期时间
2023-01-27 本文已影响0人
偷油考拉
select username,date_expired,date_password_last_updated from users_user where username="robin";
# 没有指定账户
update users_user set date_password_last_updated="2022-07-25";
or
mysql jumpserver -e "update users_user set date_password_last_updated='2022-07-24' where username='admin';"
mysql jumpserver -e "select username,date_expired,date_password_last_updated from users_user where username='admin';"