好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

错误:you (root) are not allowed to access to (cronta

/etc/pam.d/ crond # # The PAM configuration file for the cron daemon # # # No PAM authentication called, auth modules not needed account required pam_access.so account include password - auth session required pam_loginuid.so session include password - auth auth include password -auth

修改文件:

[root@~]# cp /etc/pam.d/crond /etc/pam.d/crond.bak
[root@ ~]# vim /etc/pam.d/crond

 account      sufficient     pam_access.so
account    include    system - auth
session      sufficient     pam_loginuid.so
session    include    system - auth
  auth       sufficient pam_rootok.so
auth       required   pam_env.so
auth       include    system     -auth  

重启crond 

[root@~]# /etc/init.d/crond restart
停止 crond: [确定]
正在启动 crond: [确定]

 

重新登录root

[root@~]# crontab -e

 

 完美解决

 

错误:you (root) are not allowed to access to (crontab) because of pam configuration.

标签:图片   bsp   star   权限   class   错误   use   linux c   code   

查看更多关于错误:you (root) are not allowed to access to (cronta的详细内容...

  阅读:28次