免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4219 | 回复: 8
打印 上一主题 下一主题

messages 文件异常,寻求解决方法 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-04-03 11:50 |只看该作者 |倒序浏览
50可用积分
下面是messages文件所显示的内容:
        Start up of circular syslogging
Version $Revision: 1.4 $ - Compiled on: Oct 26 2006
Max log size:  10000000



***** Log Wrap Point *****

Apr  1 06:47:03 localhost syslogd 1.4.1#16ubuntu6: restart.
Apr  1 06:52:01 localhost CRON[29126]: (pam_unix) session opened for user root by (uid=0)
Apr  1 06:52:01 localhost /USR/SBIN/CRON[29127]: (root) CMD (test-x /usr/sbin/anacron || run-parts --report /etc/cron.monthly)
Apr  1 06:52:01 localhost CRON[29126]: (pam_unix) session closed for user root
Apr  1 07:07:03 localhost -- MARK --
Apr  1 07:17:01 localhost CRON[13935]: (pam_unix) session opened for user root by (uid=0)
Apr  1 07:17:01 localhost /USR/SBIN/CRON[13936]: (root) CMD (   run-parts --report /etc/cron.hourly)
Apr  1 07:17:01 localhost CRON[13935]: (pam_unix) session closed for user root
Apr  1 07:27:03 localhost -- MARK --
Apr  1 07:47:03 localhost -- MARK --
Apr  1 08:07:03 localhost -- MARK --
Apr  1 08:17:01 localhost CRON[22400]: (pam_unix) session opened for user root by (uid=0)
Apr  1 08:17:01 localhost /USR/SBIN/CRON[22401]: (root) CMD (   run-parts --report /etc/cron.hourly)
Apr  1 08:17:01 localhost CRON[22400]: (pam_unix) session closed for user root
Apr  1 08:27:03 localhost -- MARK --
Apr  1 08:47:03 localhost -- MARK --
Apr  1 09:07:03 localhost -- MARK --
Apr  1 09:17:01 localhost CRON[30811]: (pam_unix) session opened for user root by (uid=0)
Apr  1 09:17:01 localhost /USR/SBIN/CRON[30812]: (root) CMD (   run-parts --report /etc/cron.hourly)
Apr  1 09:17:01 localhost CRON[30811]: (pam_unix) session closed for user root
Apr  1 09:27:03 localhost -- MARK --
Apr  1 09:47:03 localhost -- MARK --
Apr  1 10:07:03 localhost -- MARK --
    .
    .
    . 以下重复
Apr  2 06:17:01 localhost CRON[17689]: (pam_unix) session opened for user root by (uid=0)
Apr  2 06:17:01 localhost /USR/SBIN/CRON[17690]: (root) CMD (   run-parts --report /etc/cron.hourly)
Apr  2 06:17:01 localhost CRON[17689]: (pam_unix) session closed for user root
Apr  2 06:25:01 localhost CRON[23103]: (pam_unix) session opened for user root by (uid=0)
Apr  2 06:25:01 localhost /USR/SBIN/CRON[23104]: (root) CMD (test-x /usr/sbin/anacron || run-parts --report /etc/cron.daily)
Apr  2 06:25:02 localhost su[23134]: + ??? root:nobody
Apr  2 06:25:02 localhost su[23134]: (pam_unix) session opened for user nobody by (uid=0)
Apr  2 06:25:24 localhost exiting on signal 15
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A

N 个重复

A
A
A


***** End of Log *****


为什么会是这个样子? 什么地方出问题了呢? 谢谢各位了

论坛徽章:
0
2 [报告]
发表于 2007-04-03 12:36 |只看该作者
只能帮你顶一下了.....................

论坛徽章:
0
3 [报告]
发表于 2007-04-03 14:20 |只看该作者
USR/SBIN/CRON[13936]: (root) CMD (   run-parts --report /etc/cron.hourly)
是不是cron启的不对啊?我也是猜测的

论坛徽章:
0
4 [报告]
发表于 2007-04-03 22:46 |只看该作者
sudoer有nobody不?有的話##了他

论坛徽章:
0
5 [报告]
发表于 2007-04-03 23:12 |只看该作者
楼上的回答应该有点关系,但是这个如果打开与否只会影响登录时的信息。建议检查一下/etc/security/pam.xml文件名记不清了。。sorry。。。把和messages里面的错误session提示删掉。

论坛徽章:
0
6 [报告]
发表于 2007-04-03 23:30 |只看该作者
/USR/SBIN/CRON
有这个目录?

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
7 [报告]
发表于 2007-04-04 00:07 |只看该作者
我也奇怪,他怎么都是大写的啊?

论坛徽章:
0
8 [报告]
发表于 2007-04-04 08:54 |只看该作者
原帖由 eric-guo 于 2007-4-3 11:50 发表于 1楼  
下面是messages文件所显示的内容:
        Start up of circular syslogging
Version $Revision: 1.4 $ - Compiled on: Oct 26 2006
Max log size:  10000000



***** Log Wrap Point *****

Apr  1 ...

在/etc/syslog.conf里面有 /var/log/message 那行里 加上cron.none 试试看 ,这样cron产生的信息就不会写到message里面

论坛徽章:
0
9 [报告]
发表于 2007-04-04 15:50 |只看该作者
原帖由 eric-guo 于 2007-4-3 11:50 发表于 1楼  
下面是messages文件所显示的内容:
        Start up of circular syslogging
Version $Revision: 1.4 $ - Compiled on: Oct 26 2006
Max log size:  10000000



***** Log Wrap Point *****

Apr  1 ...

==================
我目前看不出什么异常,下面这个是ubuntu的crontab:
root@zhao-desktop:/etc/cron.daily# cat /etc/crontab
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file.
# This file also has a username field, that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user  command
17 *    * * *   root    run-parts --report /etc/cron.hourly
25 6    * * *   root    test -x /usr/sbin/anacron || run-parts --report /etc/cron.daily
47 6    * * 7   root    test -x /usr/sbin/anacron || run-parts --report /etc/cron.weekly
52 6    1 * *   root    test -x /usr/sbin/anacron || run-parts --report /etc/cron.monthly
#

每小时的17分时动作/etc/cron.hourly目录,每天6点25分动作cron.daily等等……等等

Apr  2 06:25:02 localhost su[23134]: + ??? root:nobody
Apr  2 06:25:02 localhost su[23134]: (pam_unix) session opened for user nobody by (uid=0)

这个应该是crond用nobody的权限替换root执行任务。
至于
Apr  1 08:27:03 localhost -- MARK --
Apr  1 08:47:03 localhost -- MARK --
Apr  1 09:07:03 localhost -- MARK --

每隔20分动作一次,应该是sysklogd程序加了一个-m的参数,
       -m interval
              The syslogd logs a mark timestamp regularly.  The default inter‐\r
              val  between  two  --  MARK -- lines is 20 minutes.  This can be
              changed with this option.  Setting the interval to zero turns it
              off entirely.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP