Xymon Mailing List Archive search

histlog file permissions

list Henrik Størner
Thu, 14 Feb 2013 14:09:43 +0100
Message-Id: <user-8bf1302f244c@xymon.invalid>

On Wed, 13 Feb 2013 19:56:04 +1100, Jonathan Bishop <user-c5231dd0a8e2@xymon.invalid>
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