zoukankan      html  css  js  c++  java
  • Linux账户密码过期安全策略设置

    http://www.cnblogs.com/kerrycode/p/5600525.html

    主机上普通用户执行crontab –e 时,会报错,信息如下:
    You (用户名) are not allowed to access to (crontab) because of pam configuration.

    问题排查思路:

    一、检查crond权限。
    1、cat /etc/corn.deny,文件是空的。
    2、ll /usr/bin/crontab,具备S权限位,正常。

    二、检查PAM模块。
    cat /etc/pam.d/crond,文件配置正常,与其他主机上的无异常。

    三、查看系统日志
    cat /var/log/secure,日志中显示 有用户密码过期!
    使用passwd命令修改一下用户的密码,或者,执行chage –M -1 用户名 设定用户“密码失效过期时间”从不。

    问题解决~
  • 相关阅读:
    邻接矩阵
    LeetCode
    LeetCode
    LeetCode
    LeetCode
    LeetCode
    LeetCode
    LeetCode
    LeetCode
    LeetCode
  • 原文地址:https://www.cnblogs.com/litzhiai/p/8777274.html
Copyright © 2011-2022 走看看