root 以外のユーザーは crontab を実行できず、/var/log/messages に Authentication token is no longer valid; new one required エラーが発生する
Issue
- crontab からジョブを実行できません。
- root ユーザーでは実行できますが、root 以外のユーザーが
crontabを実行すると以下のエラーメッセージが発生します。
12:09:35 server1 crond[12979]:Authentication token is no longer valid; new one required
12:09:35 server1 crond[12979]:CRON ERROR: failed to open PAM security session:Success
12:09:35 server1 crond[12979]:CRON ERROR: cannot set security context
- 特定のユーザーで crontab を実行することができません。
crontabコマンドを実行すると PAM エラーが発生します。- 一部のユーザーは conjobs を実行できません。
- /etc/pam.d/system-auth-ac に行った変更が原因で、
crontabコマンドが失敗します。
Environment
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
- crond
- pam
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
