当前位置:   article > 正文

如何解决linux用户密码过期的问题 Your password has expired._linux your password has expired

linux your password has expired

今天在dbca创建db的时候,发现两个节点的cluster只显示一个节点,随想ssh到另外一个node查看GI情况,发现如下错误。Your password has expired.使用chage -M -1 crsusr可以解决这个问题

crsusr@slcz01db03 bin]$ ssh slcz01db04
You are required to change your password immediately (password aged)
Last login: Fri Jun  5 20:30:33 MDT 2020 from slcz01db03.us.oracle.com on pts/0
Last login: Fri Jun  5 20:31:23 2020 from slcz01db03.us.oracle.com
WARNING: Your password has expired.
You must change your password now and login again!
Changing password for user crsusr.
Changing password for crsusr.
(current) UNIX password:
New password:
BAD PASSWORD: The password is too similar to the old one
New password:
BAD PASSWORD: The password is too similar to the old one
New password:
BAD PASSWORD: No password supplied


[root@slcz01db04 ~]# change -l crsusr
-bash: change: command not found
[root@slcz01db04 ~]# chage -l crsusr
Last password change					: Dec 20, 2019
Password expires					: Feb 18, 2020
Password inactive					: never
Account expires						: never
Minimum number of days between password change		: 1
Maximum number of days between password change		: 60
Number of days of warning before password expires	: 7


[root@slcz01db04 ~]# chage -M -1 crsusr
[root@slcz01db04 ~]# chage -l crsusr
Last password change					: Dec 20, 2019
Password expires					: never
Password inactive					: never
Account expires						: never
Minimum number of days between password change		: 1
Maximum number of days between password change		: -1
Number of days of warning before password expires	: 7
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/羊村懒王/article/detail/222232
推荐阅读
相关标签
  

闽ICP备14008679号