摘要: 用系统自带的日志系统rsyslog echo "Defaults logfile=/var/log/sudo.log" >> /etc/sudoers#在visudo 中添加 howhy ALL=(ALL) ALL,!/usr/bin/passwd [a-zA-z]+,!/bin/su - echo 阅读全文
posted @ 2016-11-17 15:30 howhy 阅读(85) 评论(0) 推荐(0) 编辑
摘要: Linux中find常见用法示例 ·find path -option [ -print ] [ -exec -ok command ] {} \; find命令的参数; pathname: find命令所查找的目录路径。例如用.来表示当前目录,用/来表示系统根目录。-print: find命令将匹 阅读全文
posted @ 2016-11-17 12:02 howhy 阅读(117) 评论(0) 推荐(0) 编辑
摘要: # For details see man 4 crontabs# Example of job definition:# . minute (0 - 59)# | . hour (0 - 23)# | | . day of month (1 - 31)# | | | . month (1 - 12 阅读全文
posted @ 2016-11-17 09:02 howhy 阅读(218) 评论(0) 推荐(0) 编辑