The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to change the permissions of ksh? ponnuvel UNIX for Advanced & Expert Users 3 04-15-2008 04:17 AM
how to change permissions in a certain directory? praveen_indramo UNIX for Dummies Questions & Answers 1 03-25-2008 12:07 PM
need command to change permissions calredd UNIX for Dummies Questions & Answers 1 04-28-2007 01:53 PM
checking file's permissions and change them K-ONE Shell Programming and Scripting 7 04-10-2005 10:09 AM
How to change permissions in UNIX? a8111978 Filesystems, Disks and Memory 2 06-24-2002 03:40 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-05-2007
anindra anindra is offline
Registered User
  
 

Join Date: May 2007
Posts: 8
Change permissions of /var/log/messages

I have recently configured BigBrother to monitor the linux servers in our environment. The only problem is that it is unable to read the /var/log/messages file in the servers. Due to some restrictions I can't make the bb user a member of the highly priviledged groups. The current permissions on the /var/log/messages is either 600 or 640. If I change it manually, with every log rotation it is automatically set to 600 or 640. Is there a way to make it 644 permanently so that it retains 644 even after log rotation or a -HUP?
  #2 (permalink)  
Old 11-05-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
Quote:
Originally Posted by anindra View Post
/var/log/messages
The idea is that not every man and his dog can read /var/log/messages because there may be critical information contained. Can your log read call another program to read the file, if so it could call a set uid program to do this small task.

Last edited by porter; 11-05-2007 at 12:49 PM..
  #3 (permalink)  
Old 11-05-2007
anindra anindra is offline
Registered User
  
 

Join Date: May 2007
Posts: 8
More details on this please. Which set uid program can I use and how will it do that?
  #4 (permalink)  
Old 11-05-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
I am not familiar with the BigBrother program but can it use an external program to read the log file? How does it get the remote log files?

Then you write a very small C program which *only* reads /var/log/messages and make it a setgid program as that would give it the read rights.

Or you setup a single user whose only job is to read /var/log/messages, and use ssh and public/private key pair so that your log reader can use that user on the remote machine to read the file.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:22 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0