[Xymon] histlog file permissions

henrik at hswn.dk henrik at hswn.dk
Thu Feb 14 14:09:43 CET 2013


On Wed, 13 Feb 2013 19:56:04 +1100, Jonathan Bishop <jtkbishop at gmail.com>
wrote:
> Hi.
> 
> I recently noticed I'm not able to view the history log file via the web
> interface. I can see that when it was working the histlog files had
> permissions of 644. For some reason they are now written with 640
> permissions and xymon is unable to display them. If I manually chmod to
644
> xymon can read them. Where can we configure the permissions with which
> these files are written? I'm talking about the files at
xymon/data/hislogs
> by the way. I should also mention that xymon:xymon has ownership of
these
> files.

Weird, there's nothing in Xymon that touches these files once they have
been created.

If you run "stat FILENAME" it will show you the time the permissions were
changed in the "Change:" line. E.g.

$ stat bla
  File: `bla'
  Size: 1               Blocks: 8          IO Block: 4096   regular file
Device: 6801h/26625d    Inode: 2851019     Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/hstoerne)   Gid: ( 1000/hstoerne)
Access: 2013-02-14 14:06:56.000000000 +0100
Modify: 2013-02-14 14:07:10.000000000 +0100
Change: 2013-02-14 14:07:10.000000000 +0100

$ chmod 400 bla

$ stat bla
  File: `bla'
  Size: 1               Blocks: 8          IO Block: 4096   regular file
Device: 6801h/26625d    Inode: 2851019     Links: 1
Access: (0400/-r--------)  Uid: ( 1000/hstoerne)   Gid: ( 1000/hstoerne)
Access: 2013-02-14 14:06:56.000000000 +0100
Modify: 2013-02-14 14:07:10.000000000 +0100
Change: 2013-02-14 14:07:26.000000000 +0100

Note that "Change:" is different from "Modify:" - it shows when the chmod
happened.

Perhaps that could give you a clue ?


Regards,
Henrik




More information about the Xymon mailing list