You (root) is not allowed to access to (crontab) because of PAM configuration

Source: Internet
Author: User

Patrol found that the job on a Linux server did not send the message as scheduled, after logging on to the server to find that the job did not execute, so check the crontab settings. The result is the following error:

[Email protected] ~]# crontab-l

Authentication token is no longer valid; New one required

you (Root) is not allowed to Access to (crontab) because of Pam configuration.

[Email protected] ~]#

Look at the/etc/pam.d/crond, after careful examination found that we set the password expiration policy, when the password expires, the job due to authorization is not enforced, this can refer to the Linux account password expiration will cause the crontab job can not be executed and Linux account password expiration security policy setting

[Email protected] ~]# More/etc/pam.d/crond

#

# The PAM configuration file for the cron daemon

#

#

# No PAM authentication called, Auth modules not needed

account    required

account    include    Password-auth

session    required

session    include    Password-auth

auth    &NBSP, include     password-auth

You is required to change your password immediately (password aged)

last login:wed June 28 15:42:13 From xxx.xxx.xxx.xxx

changing password for root.

(current) UNIX Password:

You (root) is not allowed to access to (crontab) because of Pam configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.