Linux账户密码过期安全策略设置、Linux账号密码过期会导致crontab作业不能执行
最近因用oracle用户执行shell脚本做定时备份脚本任务,在执行crontab命令有如下报错:
$ crontab -l
You (oracle) are not allowed to access to (crontab) because of pam configuration.
在网上找了些资料解决方式说明如下:
在Linux系统管理中,有时候需要设置账号密码复杂度(长度)、密码过期策略等,这个主要是由/etc/login.defs参数文件中的一些参数控制的的。它主要用于用户账号限制,里面的参数主要有下面一些:
/etc/login.defs:
# cat /etc/login.defs
#
# Please note that the parameters in this configuration file control the
# behavior of the tools from the shadow-utils component. None of these
# tools uses the PAM mechanism, and the utilities that use PAM (such as the
# passwd command) should therefore be configured elsewhere. Refer to
# /etc/pam.d/system-auth for more information.
#
# *REQUIRED*
# Directory where mailboxes reside, _or_ name of file, relative to t