Ad Code

Cronjob's Failing

Problem: Cronjob's are failing

Error: You (testusr) are not allowed to access to (crontab) because of pam configuration.

Reason: The password "testusr" got expired

Solution:

    To avoid this problem in future, "change password expires: never".  This may be suitable only for service account not for all users.

Command:

Before:

chage -l testusr   #To check the user status.

Last password change                                 : Jun 23, 2020

Password expires                                        : Sep 21, 2020

Password inactive                                       : Nov 20, 2020

Account expires                                          : never

Minimum number of days between password change    : 1

Maximum number of days between password change    : 90

Number of days of warning before password expires     : 7


After:

chage -M -1 testusr  #Change Password expires: never

Last password change                                : Jun 23, 2020

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


Reactions

Post a Comment

0 Comments