Good day all,

        As in my previous posts, I have been having trouble with weblet displaying
the log files.  Charles Steinkuehler has pointed me in the right direction
and I hope someone with more experience with uClibc may be able to help me
close this off.

        The problem was discovered when I was viewing my log files in weblet.  It
seemed that sometimes it would work and other times I would get an error
stating that the log files were not readable.  Charles suspected (rightly)
that it had something to do with permissions.  As you can see below, I
checked the log file permissions using ls -l command after booting the
router.  after an hour or so, I checked the logs with weblet and all was
working fine.  Next night, I go to check the logs again with weblet and get
the error file is unreadable.  I again check the permissions using ls -l and
find that most of the permissions have been changed.  I reboot the router
and check again, all are set correctly again.

        How do I track down which process is making this change and why??  From the
addition of the extra log files I suspect that this may be happening during
log file rotation but how do I confirm this?


WaveQamFW# ls -l
-rw-r--r--    1 root     root         2100 Jun 29 00:40 auth.log
-rw-r--r--    1 root     root         1573 Jun 29 00:45 cron.log
-rw-r--r--    1 root     root         1487 Jun 29 00:41 daemon.log
-rw-r--r--    1 root     root         1285 Jun 28 20:33 debug
-rw-r--r--    1 root     root         5497 Jun 29 00:36 messages
-rw-r--r--    1 root     root            0 Jun 28 20:33 ppp.log
-rw-r--r--    1 root     root        16230 Jun 29 00:37 shorewall.log
-rw-r--r--    1 root     root         2617 Jun 28 20:33 syslog
-rw-r--r--    1 root     root          154 Jun 28 20:33 ulogd.log
-rw-r--r--    1 root     root         3072 Jun 29 00:40 wtmp

WaveQamFW# ls -l
-rw-r--r--    1 root     root         4704 Jun 30 07:14 auth.log
-rw-r-----    1 root     wheel         236 Jun 30 07:15 cron.log
-rw-r-----    1 root     wheel        7649 Jun 30 06:42 cron.log.0
-rw-r-----    1 root     wheel         497 Jun 30 06:42 cron.log.1.gz
-rw-r-----    1 root     wheel         748 Jun 30 07:15 daemon.log
-rw-r-----    1 root     wheel        1673 Jun 30 04:25 daemon.log.0
-rw-r-----    1 root     wheel         694 Jun 30 06:42 daemon.log.1.gz
-rw-r-----    1 root     wheel           0 Jun 30 06:42 debug
-rw-r-----    1 root     wheel         978 Jun 30 02:33 debug.0
-rw-r-----    1 root     wheel         355 Jun 30 06:42 debug.1.gz
-rw-r-----    1 root     wheel          50 Jun 30 06:42 messages
-rw-r-----    1 root     wheel       50976 Jun 30 06:42 messages.0
-rw-r-----    1 root     wheel        2239 Jun 30 06:42 messages.1.gz
-rw-r-----    1 root     wheel           0 Jun 30 06:42 ppp.log
-rw-r-----    1 root     wheel           0 Jun 29 06:42 ppp.log.0
-rw-r-----    1 root     wheel          20 Jun 30 06:42 ppp.log.1.gz
-rw-r-----    1 root     wheel           0 Jun 30 06:42 shorewall.log
-rw-r-----    1 root     wheel       11331 Jun 30 06:28 shorewall.log.0
-rw-r-----    1 root     wheel        1328 Jun 30 06:42 shorewall.log.1.gz
-rw-r-----    1 root     wheel           0 Jun 30 06:42 syslog
-rw-r-----    1 root     wheel           0 Jun 29 06:42 syslog.0
-rw-r-----    1 root     wheel        1036 Jun 30 06:42 syslog.1.gz
-rw-r--r--    1 root     root          472 Jun 30 06:42 ulogd.log
-rw-r--r--    1 root     root         5376 Jun 30 07:14 wtmp

WaveQamFW# ls -l
-rw-r--r--    1 root     root         2421 Jun 30 07:23 auth.log
-rw-r--r--    1 root     root          234 Jun 30 07:20 cron.log
-rw-r--r--    1 root     root          737 Jun 30 07:20 daemon.log
-rw-r--r--    1 root     root         1275 Jun 30 07:20 debug
-rw-r--r--    1 root     root         9032 Jun 30 07:23 messages
-rw-r--r--    1 root     root            0 Jun 30 07:20 ppp.log
-rw-r--r--    1 root     root            0 Jun 30 07:20 shorewall.log
-rw-r--r--    1 root     root         2617 Jun 30 07:20 syslog
-rw-r--r--    1 root     root          154 Jun 30 07:20 ulogd.log
-rw-r--r--    1 root     root         3072 Jun 30 07:23 wtmp



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to