Allowed to access to crontab because of Pam configuration_php tutorial

Source: Internet
Author: User

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 ...

  • 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.