Chinaunix
标题:
RH linux 怎么才能在root密码过期的情况下使用crontab
[打印本页]
作者:
xujintaoibm
时间:
2012-02-14 12:17
标题:
RH linux 怎么才能在root密码过期的情况下使用crontab
如题
RH linux 怎么才能在root密码过期的情况下使用crontab.谢谢
作者:
taojie2000
时间:
2012-02-14 12:29
回复
1#
xujintaoibm
没理解..
作者:
xujintaoibm
时间:
2012-02-14 13:05
回复
2#
taojie2000
比如给root编辑 crontab -e
55 * * * * touch /tmp/1111
这样每55分钟就会去建1111的文件。但是当root密码过期了(比如chage -M 0 root),crontab 就不会去建立文件1111
作者:
taojie2000
时间:
2012-02-14 13:11
回复
3#
xujintaoibm
你这让密码过期有这要求吗? root 密码为安全 会定期人为更换的 不存在过期一说
作者:
xujintaoibm
时间:
2012-02-14 13:35
回复
4#
taojie2000
就是在过期的这段时间crontab会出错。
作者:
xujintaoibm
时间:
2012-02-14 13:43
回复
4#
taojie2000
服务器/etc/login.defs 配置PASS_MIN_DAYS 1 。
root属于share id
一旦用了之后就要更改
所以同一天有两次使用root密码,就会出现root密码过期
作者:
longnianji
时间:
2012-02-14 14:38
没看懂。
作者:
dengbao2001
时间:
2012-02-14 16:11
确认了下,是不行
如果可行的话,岂不是是一个风险
作者:
clg1990
时间:
2012-02-14 17:32
葵力健 进来支持一下啊
作者:
ak2046
时间:
2012-02-15 12:58
怎么不存在过期的说法?很多情况下就是设置了root在多长时间内没更新就过期的,不过通常会增设一些特殊账号,如动态令牌用户能sudo到root。
taojie2000 发表于 2012-02-14 13:11
回复 3# xujintaoibm
作者:
taojie2000
时间:
2012-02-15 13:02
回复
10#
ak2046
我是说 root 密码为安全 规范点 会定期人为更换的 如果管理员懒得去定期更新root密码 那没办法了
作者:
xujintaoibm
时间:
2012-02-15 15:01
谢谢,楼上各位
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2