Best practice to allow 3rd party app to read messages file.

Login or Register to Reply

Thread Tools Search this Thread
# 1  
Best practice to allow 3rd party app to read messages file.

What is the best practice to allow a 3rd party health monitoring app to read the messages file. Since messages is a system file and is owned by root the app cannot read the file. I don't want to run the app as root so how should I allow the app to read the file. The read function is actually built into the apps binary so its not using /bin/view or /bin/more to read messages which I believe stops me from being able to add the permissions in the sudoers file.

Any thoughts or suggestions are greatly appreciated. Thanks.
# 2  
What is your operating system ?

Most of modern unix and linux operating systems support ACLs.
Add the extra privilege to certain user(s) and/or groups only (the one who is running the monitoring client on same machine).
Depending on the operating system, this is done with setfacl or chmod (on solaris systems).

Hope that helps
Best regards
# 3  
I would simply make the /var/log/messages world-readable.
This is traditional Unix standard, and works unless you have an application that logs sensitiv data. (And in this case the application should be fixed.)
Settings an ACL might fail e.g. after a logfile rotation.
Login or Register to Reply

Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
No such file or directory for 3rd party software
larry burns
I am trying to use the KiFMM3D software with my code. I am compiling code in C++ and everything looks fine but I am getting an "no such file or directory" error regarding the KiFMM3d code. The exact error message is : In file included from...... Shell Programming and Scripting
Shell Programming and Scripting
Problem compiling 3rd party g++ program
I'm trying to compile a 3rd party program used for solid-state chemistry that calculates pore characteristics of an input material. The program was written between 2000 and 2006, so I believe the problem is that the headers used are outdated, but I'm not terribly computer savvy (and a complete...... UNIX for Dummies Questions & Answers
UNIX for Dummies Questions & Answers
Will installing LINUX mean reinstalling my 3rd party apps?
Hi all, Long time UNIX admin, first time LINUX user. So I'm finally at the last straw with Windows. I hate it. I've always hated it but the wife was scared of change so I kept it going. But Window's insistence on "protecting" me by preventing me access to certain areas created hours of work...... Linux
3rd Party Utilities to read Syslog
I'm new to UNIX / AIX and I'm trying to determine the best way to monitor the SYSLOG output generated from our RS6000. I apologize if there is another thread that already addresses this issue, I scanned the threads, but didn't see anything. Thanks in advance, Rosemary... AIX
How to pass variables to 3rd party unix menu?
Hello, I was wondering if it is possible to pass data to a unix driven 3rd party menu. Changing the code is out of the question. I have a menu with various options and I would like a ksh to execute the menu and input the required fields. For example. Main menu 1. Company Name 2. blah...... Shell Programming and Scripting
Shell Programming and Scripting