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.
    在這裏插入圖片描述

解決方法

  • 1、切換至root權限下
  • 2、更改用戶有效期
    chage -M 9999 用戶名
  • 3、 切換至其他用戶
    crontab -e
    可以正常使用
    在這裏插入圖片描述
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章