<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>Problem with file owner/group check</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<BR>

<P><FONT FACE="Arial">  We recently encountered a problem with directory permissions on one of our web servers and so decided to update our Xymon installation (v4.2.3) to monitor it. Unfortunately I think I've found a bug in the code that facilitates this. </FONT></P>

<P><FONT FACE="Arial">In the hobbit-client.cfg file we have a test like this:</FONT>
</P>

<P>        <FONT FACE="Arial">FILE /var/somefile mode=755 owner=root groupid=root yellow</FONT>
</P>

<P><FONT FACE="Arial">The owner test works fine but the group test doesn't, instead it say that the file should be owned by group 'd=root'. Further investigation shows that the owner test also fails in the same way if we use the 'ownerid=root' variation of the owner test. It's almost as if the code is assuming that the first 6 characters of the token is the name and everything else is the value. This works fine with the 'owner=root' variation but fails dismally with the 'ownerid=root' and 'groupid=root' variations. It would be fine if we could use 'group=root' but as that's a reserved word it's not allowed.</FONT></P>

<P><FONT FACE="Arial">  Unfortunately my C coding is virtually non-existent, I can get by with reading it but not writing it! Has anyone encountered this before and written a patch for it? Or has it been fixed in the 4.3.0 beta?</FONT></P>

<P><FONT SIZE=2 FACE="Courier New">Thank you,</FONT>

<BR><FONT SIZE=2 FACE="Courier New">Ian Marsh</FONT>

<BR><FONT SIZE=2 FACE="Courier New"> </FONT>

<BR><FONT SIZE=2 FACE="Courier New">IT Service Operations - Network Services</FONT>
</P>
<BR>

</BODY>
</HTML>