View previous topic :: View next topic |
Author |
Message |
rogue Tux's lil' helper
Joined: 15 May 2002 Posts: 99 Location: Falls Church, VA
|
Posted: Wed Aug 27, 2003 3:48 pm Post subject: /var/log permissions |
|
|
Hi,
I'm using root-tail to show some log messages on the desktop, but the default /var/log/messages permissions are just rw for root. If I change it to allow read access for everyone, eventually it just reverts back to rw for root. Is there a file I can edit that controls the default permissions on these files? _________________ (rob) |
|
Back to top |
|
|
Petyr Guru
Joined: 08 Jan 2003 Posts: 471 Location: San Diego, CA, USA
|
Posted: Wed Aug 27, 2003 7:23 pm Post subject: |
|
|
I think it might be your system logger "fixing" the permissions on the file. Take a look at the config file for it and the man pages and see if there are options for it.
Petyr |
|
Back to top |
|
|
rojaro l33t
Joined: 06 May 2002 Posts: 732
|
Posted: Wed Aug 27, 2003 7:46 pm Post subject: |
|
|
let me guess, you are using syslog-ng. as i only want to have root and some priviledged users reading the log's, i've made the following configuration:
Code: | options {
long_hostnames(off);
sync(0);
stats(43200);
};
source src { unix-stream("/dev/log"); internal(); pipe("/proc/kmsg"); };
destination messages { file("/var/log/messages" owner(root) group(wheel) perm(0640)); };
destination console_all { file("/dev/tty12"); };
log { source(src); destination(messages); };
log { source(src); destination(console_all); }; |
this only provides root and the users within the wheel group access to the messages logfile. man syslog-ng.conf :) _________________ A mathematician is a machine for turning coffee into theorems. ~ Alfred Renyi (*1921 - †1970) |
|
Back to top |
|
|
rogue Tux's lil' helper
Joined: 15 May 2002 Posts: 99 Location: Falls Church, VA
|
Posted: Wed Aug 27, 2003 8:05 pm Post subject: |
|
|
thanks. i thought that it was something to do with the syslog config but what rojaro said definitely did the trick _________________ (rob) |
|
Back to top |
|
|
|