You (root) are not allowed to access to (crontab) because of pam configuration
巡检发现一台Linux服务器上的作业没有如期发送邮件,登录服务器检查后发现作业并没有执行,于是检查一下crontab的设置。结果发现如下错误:
[root@mylnx2 ~]# crontab -l
Authentication token is no longer valid; new one required
You (root) are not allowed to access to (crontab) because of pam configuration.
[root@mylnx2 ~]#
查看了一下/etc/pam.d/crond,仔细检查后发现我们设置了密码过期策略,当密码过期后,作业由于权限认证是不会执行的,这个可以参考Linux账号密码过期会导致crontab作业不能执行和 Linux账户密码过期安全策略设置
[root@mylnx2 ~]# more /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账号, 那如果密码过期了后,你怎么使用root登录呢? 其实这里我们访问服务器通过Jump Server(跳板机)登录,登录后使用sudo su - 切换到root账号,所以没有遇到类似下面需要修改密码的通知。
You are required to change your password immediately (password aged)
Last login: Wed Jun 28 15:42:13 2017 from xxx.xxx.xxx.xxx
Changing password for root.
(current) UNIX password:
You (root) are not allowed to access to (crontab) because of pam configuration相关推荐
- Not allowed to access vertices on mesh ‘Combined Mesh (root: scene)
Not allowed to access vertices on mesh 'Combined Mesh (root: scene)' (isReadable is false; Read/Writ ...
- Not allowed to access normals on mesh ‘Combined Mesh (root: scene)‘ (isReadable is false...报错解决方法
Unity播放时如果出现的"Not allowed to access normals on mesh 'Combined Mesh (root: scene)' (isReadable ...
- beeline连接hiveserver2报错:User: root is not allowed to impersonate root
最近在生产中搭建HA机制的集群,碰到不少坑,会在接下来的时间里好好总结下,先说下遇到的一个大坑.我们的需求是:希望通过hive的thrift服务来实现跨语言访问Hive数据仓库.但是第一步,你得需要在 ...
- Required field ‘serverProtocolVersion‘ is unset! User: root is not allowed to impersonate root
在使用hiveserver2连接hive时,遇到以下报错: Beeline version 2.3.8 by Apache Hive beeline> ! connect jdbc:hive2: ...
- User root is not allowed to impersonate anonymous
使用HiveServer2 and Beeline模式运行时,启动好HiveServer后运行 beeline -u jdbc:hive2://localhost:10000 -n root 连接se ...
- hive中beeline连接报错 User: root is not allowed to impersonate root:已解决
第一种:hive中beeline连接报错 Error: Could not open client transport with JDBC Uri: jdbc:hive2://node-4:10000 ...
- Hive User: root is not allowed to impersonate xxx问题
问题: Hive User: root is not allowed to impersonate xxx问题 解决方案: 在hadoop的配置文件core-site.xml增加如下配置,重启hado ...
- Not allowed to access uv6 on mesh ‘Mesh Train‘ (isReadable is false)报错解决
Not allowed to access uv6 on mesh 'Mesh Train' (isReadable is false; Read/Write must be enabled in i ...
- Forbidden (#403)You are not allowed to access this page.
添加GII的IP白名单: 在config/web.php修改gii的allowedIPs 修改完仍然不行,一般是在虚拟机中的运行环境: 定位到:yii\gii\Module,在下面代码中打印出获取的I ...
最新文章
- MySQL 高级 函数
- spring 多线程 事务的实际应用场景
- spacy 报错 gold.pyx in spacy.gold.GoldParse.__init__() 解决方案
- [Vue.js]实战 -- 电商项目(四)
- jps 显示有问题 解决方法
- 5G商业化进程提速 运营商推进网络智能化转型
- P1491 集合位置
- GB7714-1987文后参考文献著录规则
- Matlab 三角函数输入
- win7磁盘合并步骤
- Java连接redis集群报错,connection refused 和Could not get a resource from the pool
- 以太坊开发------Mist使用:合约及部署合约
- 几何学在计算机中的应用,探析坐标几何的应用意义及其在计算机中的实现
- 头脑王者服务器维护,头脑王者服务器
- react native 出现程序包com.facebook.react不存在
- 正则筛选图片url(js)
- C语言 将一个数组的内容复制到另一个数组
- Win32 程序开发:一个简单的Win32程序
- stm32f103c8t6c语言教程,STM32f103C8T6入门学习记录.doc
- 最近连续三周活跃用户数
热门文章
- 使用 v-cloak 防止页面加载时出现 vuejs 的变量名
- Linux定时任务系统 Cron
- 一个WinForm记事本程序(包含主/下拉/弹出菜单/打开文件/保存文件/打印/页面设置/字体/颜色对话框/剪切版操作等等控件用法以及记事本菜单事件/按键事件的具体代码)...
- np.random.choice的用法
- 面试题之求二叉树的深度
- mysql磁盘占用太大无法删除_mysql的binlog太大太多占用大量磁盘的解决
- (03)两个模型的交集、并集、差集
- php admin_priv,ECshop后台开发模块步骤
- kafka学习_kafka学习(第一章 初识kafka)
- 安卓中为什么onkeydown没有相应_为什么今年在园区注册个人独资企业能将企业总税率降低至3%?...