You (username) are not allowed to access to (crontab) because of pam configuration.

Check the password expiration settings for the user…

[hdfs@cmhlpdlakedg01 tobe]$ crontab -e

Authentication token is no longer valid; new one required
You (hdfs) are not allowed to access to (crontab) because of pam configuration.
[hdfs@cmhlpdlakedg01 tobe]$

[root@cmhlpdlakedg01 log]# chage -l hdfs
Last password change                                    : Aug 13, 2015
Password expires                                        : Nov 11, 2015
Password inactive                                       : never
Account expires                                         : never
Minimum number of days between password change          : 7
Maximum number of days between password change          : 90
Number of days of warning before password expires       : 14
[root@cmhlpdlakedg01 log]# chage -I -1 -m 0 -M 99999 -E -1 hdfs
[root@cmhlpdlakedg01 log]# chage -l hdfs
Last password change                                    : Aug 13, 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       : 14
[root@cmhlpdlakedg01 log]# su - hdfs
[hdfs@cmhlpdlakedg01 ~]$ crontab -e
no crontab for hdfs - using an empty one
crontab: installing new crontab
[hdfs@cmhlpdlakedg01 ~]$ crontab -l
0 1,3,5,7,9,11,13,15,17,19,21,23 * * * /hadoop/feeds/akamai/tobe/copy.sh
[hdfs@cmhlpdlakedg01 ~]$

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.