Not allowed to access to crontab because of Pam configuration
If you run crontab, you encounter an error such as the following:
$ crontab-l
You (Zhangsan) is not a allowed to access to (crontab) because of Pam configuration.
The reason may be because the user Zhangsan password expires. When attempting to log in with a password, you are prompted to change the password immediately:
$ su-zhangsan
Password:
You is required to change your password immediately (password aged)
changing password for Zhangsan.
(current) UNIX Password:
If it happens to be a Hadoop cluster, passwords cannot expire due to password-free logins.
You can use the named Chage to see the actual situation, such as (run as root):
#chage-L Zhangsan
Last password Change:nov 23, 2015
Password Expires:feb 21, 2016
Password Inactive:never
Account Expires:never
Minimum number of days between password change:0
Maximum number of days between password change:90
Number of days of warning before password expires:7
From the above can be seen: every 90 days need to change the password, the password expires 7 days before the alarm.
To make the password permanent, you can set this up:
Chage-m 99999 Zhangsan
Check again:
#chage-L Zhangsan
Last password Change:nov 23, 2015
Password Expires:never
Password Inactive:never
Account Expires:never
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
http://www.bkjia.com/PHPjc/1104552.html www.bkjia.com true http://www.bkjia.com/PHPjc/1104552.html techarticle allowed to access to crontab because of PAM configuration if you run a crontab error such as the following: $ crontab-l You (Zhangsan) is no T allowed to access to (crontab) b ...