Chinaunix
标题:
配置cron任务权限控制
[打印本页]
作者:
marryer
时间:
2011-11-16 16:29
标题:
配置cron任务权限控制
原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 :
http://bbs.xmws.cn/thread-1185-1-1.html
RHCE_RHEL6_实战精品 8.配置cron任务权限控制
企业需求:
配置cron不允许tami用户使用。
实施步骤:
1.创建tami用户,并编辑/etc/cron.deny文件,把用户tami列入其中。
[root@dtop30 ~]# useradd tami
[root@dtop30 ~]# vim /etc/cron.deny
tami
2.保证crond服务开机启动。重启crond服务。
[root@dtop30 ~]# chkconfig crond on
[root@dtop30 ~]# service crond restart
3.验证:
[root@dtop30 ~]# crontab –e root用户正常可用
[root@dtop30 ~]# su - tami 切换到tami
[tami@dtop30 ~]$ crontab –e
[attach]513919[/attach]
[tami@dtop30 ~]$ exit
[root@dtop30 ~]#
作者:
anitcoder
时间:
2011-11-16 17:18
OK
作者:
fhefh
时间:
2011-11-16 22:29
本帖最后由 fhefh 于 2011-11-16 22:30 编辑
提个意见
楼主 你写RHCE实验的时候 能否将概念也顺便说下
什么是例行工作(crontab)?
它用来干什么的
知其然而不知其所以然
mark下 做个标记
作者:
Shell_HAT
时间:
2011-11-17 10:12
回复
3#
fhefh
全部展开的话,还不得写本书?
作者:
fhefh
时间:
2011-11-17 15:21
回复
4#
Shell_HAT
{:3_193:}
了解了 谢谢斑竹指正
作者:
sisier
时间:
2011-11-21 16:36
其实详细情况可以到他们网址去看下,还不错,写得那么详细,版主也很累啊
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2