<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Arial","sans-serif";
        color:blue;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-AU" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoPlainText">Not sure what Linux you are running, but have you looked SELinux This could be causing you your access issues.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Check this link out on ways to turn it off to see if it is the culprit.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><a href="http://www.crypt.gen.nz/selinux/disable_selinux.html">http://www.crypt.gen.nz/selinux/disable_selinux.html</a><o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Alan<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:blue"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> xymon-bounces@xymon.com [mailto:xymon-bounces@xymon.com]
<b>On Behalf Of </b>Josh Luthman<br>
<b>Sent:</b> Tuesday, 29 March 2011 1:21 PM<br>
<b>To:</b> Adam Goryachev<br>
<b>Cc:</b> xymon@xymon.com<br>
<b>Subject:</b> Re: [Xymon] Hobbit Permission Problem<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Xymon probably isn't running as root and hence the user has no permission to read that file.<br>
<br>
Use group permission for the file and add the Xymon user to that group.<br>
<br clear="all">
Josh Luthman<br>
Office: 937-552-2340<br>
Direct: 937-552-2343<br>
1100 Wayne St<br>
Suite 1337<br>
Troy, OH 45373<br>
<br>
<o:p></o:p></p>
<div>
<p class="MsoNormal">On Mon, Mar 28, 2011 at 10:51 PM, Adam Goryachev <<a href="mailto:adam@websitemanagers.com.au">adam@websitemanagers.com.au</a>> wrote:<o:p></o:p></p>
<p class="MsoNormal">Hi all,<br>
<br>
I've got a bit of a problem across a number of machines which I'm having<br>
some trouble working out.<br>
<br>
Basically, the problem is my hobbit user can't display my log files:<br>
hobbit@host:/var/log$ cat messages<br>
cat: messages: Permission denied<br>
<br>
However, the user has these permissions/groups<br>
hobbit@host:/var/log$ id<br>
uid=110(hobbit) gid=110(hobbit) groups=0(root),4(adm),110(hobbit)<br>
<br>
The directories leading to the file have these permissions:<br>
hobbit@host:/var/log$ ls -ld /<br>
drwxr-xr-x 24 root root 4096 Nov 19  2009 /<br>
hobbit@host:/var/log$ ls -ld /var<br>
drwxr-xr-x 15 root root 4096 Nov 19  2009 /var<br>
hobbit@host:/var/log$ ls -ld /var/log<br>
drwxr-xr-x 14 root root 4096 Mar 29 08:46 /var/log<br>
<br>
The file has read permissions to the adm group of which we are a member<br>
(above)<br>
hobbit@host:/var/log$ ls -ld /var/log/messages<br>
-rw-r----- 1 root adm 21353 Mar 29 13:27 /var/log/messages<br>
<br>
Finally, here is all the info I can see on the file:<br>
hobbit@host:/var/log$ stat /var/log/messages<br>
 File: `/var/log/messages'<br>
 Size: 21353           Blocks: 48         IO Block: 1048576 regular file<br>
Device: eh/14d  Inode: 4202796     Links: 1<br>
Access: (0640/-rw-r-----)  Uid: (    0/    root)   Gid: (    4/     adm)<br>
Access: 2011-03-28 20:21:00.000000000 +1100<br>
Modify: 2011-03-29 13:27:00.000000000 +1100<br>
Change: 2011-03-29 13:27:00.000000000 +1100<br>
<br>
I'm running a fairly standard Debian lenny<br>
<br>
The root user has no problem reading/writing the file/etc....<br>
<br>
Any pointers would be appreciated....<br>
<br>
Regards,<br>
Adam<br>
_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<PRE>________________________________________________________________________________

This email (including all attachments) may contain personal information and is intended solely for the named addressee. It is confidential and may be subject to legal or other professional privilege and any confidentiality or privilege is not waived or lost because this email has been sent to you by mistake.  This email is also subject to copyright.  No part of it should be reproduced, adapted or communicated without the written consent of the copyright owner. Any personal Information in this email must be handled in accordance with the Privacy Act 1988 (Cth).  If you have received it in error, please let Stanwell Corporation Limited know by reply email, delete it from your system and destroy any copies.  Stanwell is not responsible for any changes made to a document other than those made by Stanwell.  Stanwell accepts no liability for any damage caused by this email or its attachments due to viruses, interference, interception, corruption or unauthorised access.   If  you have any doubts about the authenticity of an email purportedly sent by us, please contact us immediately.  If this is a commercial electronic message within the meaning of the Spam Act 2003 (Cth), you may indicate that you do not wish to receive any further commercial electronic messages from Stanwell by emailing mailto:privacy@stanwell.com...
________________________________________________________________________________
</PRE></body>
</html>