解决cron无法运行报错:FAILED to authorize user with PAM (Module is unknown)
来源:互联网 发布:北师大网络教育会计学 编辑:程序博客网 时间:2024/06/06 00:46
查看cron运行日志
tail -f /var/log/cron
报如下错误:
May 8 10:14:01 localhost crond[9399]: (root) FAILED to authorize user with PAM (Module is unknown)May 8 10:14:01 localhost crond[9400]: (root) FAILED to authorize user with PAM (Module is unknown)
网上有如下解决方法:
- 禁用SELinux,可以使用getenforce命令查看是否禁用。
- 修改/etc/cron.allow,添加
rootmyuser
- 修改/etc/pam.d/crond,把把所有required改成sufficient,这个可能对非root用户管用。
## The PAM configuration file for the cron daemon### No PAM authentication called, auth modules not neededaccount required pam_access.soaccount include password-authsession required pam_loginuid.sosession include password-authauth include password-auth
最终解决办法:
重启crond服务
/etc/init.d/crond restart
参考:
- https://www.centos.org/forums/viewtopic.php?t=61414
- https://opensource4admin.wordpress.com/2014/07/31/failed-to-authorize-user-with-pam-module-is-unknown-solved/
- http://bluemood.blog.51cto.com/1142811/953078/
- http://www.linuxquestions.org/questions/linux-security-4/failed-to-authorize-user-with-pam-permission-denied-4175492110-print/
0 0
- 解决cron无法运行报错:FAILED to authorize user with PAM (Module is unknown)
- Mac Android Studio报错installation failed with message failed to finalize session;unknown failure(erro
- 解决“Linux无法登录,显示module is unknown”问题
- 解决“suse12无法登录,显示module is unknown”问题
- Android——eclipse下运行android项目报错 Conversion to Dalvik format failed with error 1解决
- 小米手机调试运行报错Installation failed with message Failed to establish session
- 解决 Maven工程运行报错Failed to clean project: Failed to delete
- Linux无法登录,显示module is unknown
- Linux无法登录,显示module is unknown
- Linux无法登录,显示module is unknown
- Linux无法登录,显示module is unknown
- Linux无法登录,显示module is unknown
- linux无法登陆,显示module is unknown
- PHP 报错 Warning: Unknown: failed to open stream Fatal error: Unknown: Failed opening required
- Host Credentials报错"Connection to host as user oracle failed: ERROR: Wrong password for user"的解决一例
- Tomcat运行报错:严重: Failed to initialize end point associated with ProtocolHandler ["http-bio-8080"]
- eclipse下运行android项目报错:Conversion to Dalvik format failed with error 1解决办法
- 解决启动报错:Failed to destroy end point associated with ProtocolHandler["ajp-nio-8009"]
- 服务器端渲染和客户端渲染有什么区别?
- 第八届山东省ACM省赛比赛感想
- 服务机器人常用的定位导航技术及优缺点分析
- JS 的引用赋值与传值赋值
- 3.3.6_在圆弧周围绘制文本
- 解决cron无法运行报错:FAILED to authorize user with PAM (Module is unknown)
- Java 动态代理与class字节码动态修改技术
- Longest Substring Without Repeating Characters
- 【翻译】【Redis笔记】How to start using RDM
- web开发-MyEclipse下配置和创建web&java工程过程-学习笔记十五
- 3.4.1_指示文本输入位置的光标
- CS231n系列课程Lecture 7: Convolutional Neural Networks
- 【脚本语言系列】关于PythonGUI界面PyQT,你需要知道的事
- [转]无法获得锁 /var/lib/dpkg/lock