liunx 的crontab编写异常 You (king) are not allowed to access to (crontab) because of pam configuration.

报错信息

  • You (sso) are not allowed to access to (crontab) because of pam configuration.
    liunx 的crontab编写异常 You (king) are not allowed to access to (crontab) because of pam configuration.

解决方法

  • 1、切换至root权限下
  • 2、更改用户有效期
    chage -M 9999 用户名
  • 3、 切换至其他用户
    crontab -e
    可以正常使用
    liunx 的crontab编写异常 You (king) are not allowed to access to (crontab) because of pam configuration.