![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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?
|
|
||||
|
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.. |
|
||||
|
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. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|