Thursday, May 18, 2023

Your account has expired; please contact your system administrator : Linux OS

Re-Enable user In Linux : Your account has expired; please contact your system administrator


[atharv@0.0.0.0~]$

[atharv@0.0.0.0~]$ su - atharv

Password:

Your account has expired; please contact your system administrator

su: User account has expired

[atharv@0.0.0.0~]$




Login as root user :


[root@0.0.0.0home]# chage -l atharv
Last password change                                    : May 18, 2023
Password expires                                        : never
Password inactive                                       : never
Account expires                                         : May 18, 2023
Minimum number of days between password change          : 0
Maximum number of days between password change          : 99999
Number of days of warning before password expires       : 7
[root@0.0.0.0home]#
[root@0.0.0.0home]#




[root@0.0.0.0home]#
[root@0.0.0.0home]#
[root@0.0.0.0home]# chage --expiredate 2023-05-19 atharv
[root@0.0.0.0home]#
[root@0.0.0.0home]#
[root@0.0.0.0home]# chage --list atharv
Last password change                                    : May 18, 2023
Password expires                                        : never
Password inactive                                       : never
Account expires                                         : May 19, 2023
Minimum number of days between password change          : 0
Maximum number of days between password change          : 99999
Number of days of warning before password expires       : 7
[root@0.0.0.0home]#

No comments:

Post a Comment