View previous topic :: View next topic |
Author |
Message |
rel Tux's lil' helper
Joined: 20 Apr 2002 Posts: 137
|
Posted: Wed Dec 15, 2004 9:05 am Post subject: syslog-ng and logfile owner/group |
|
|
Hello,
I hope this is the right forum to ask this question.
I simply want the group bit of /var/log/messages to be set to group "wheel" with read perms. So that I can
use a logchecker from my desktop.
Checked man syslog-ng[.conf] but there is no clue to be found.
So is this possible with syslog-ng? Or should I use a diff logger?
rel |
|
Back to top |
|
|
Prinzessin n00b
Joined: 04 Feb 2004 Posts: 17 Location: hessen
|
Posted: Wed Dec 15, 2004 11:18 am Post subject: |
|
|
Hello rel
Yes, it's possible with syslog-ng. Edit your /etc/syslog-ng/syslog-ng.conf
Code: | ...
destination messages { file("/var/log/messages" group("wheel") perm(0640)); };
... |
But remember that your User should be in Group "wheel".
Have a nice day ...! _________________ # emerge moo |
|
Back to top |
|
|
rel Tux's lil' helper
Joined: 20 Apr 2002 Posts: 137
|
Posted: Wed Dec 15, 2004 12:04 pm Post subject: |
|
|
Prinzessin wrote: | Hello rel
Yes, it's possible with syslog-ng. Edit your /etc/syslog-ng/syslog-ng.conf
Code: | ...
destination messages { file("/var/log/messages" group("wheel") perm(0640)); };
... |
But remember that your User should be in Group "wheel".
Have a nice day ...! |
Hi princess,
where is that documented?
It works like a dream, thanks!
A nice day to you too! |
|
Back to top |
|
|
Prinzessin n00b
Joined: 04 Feb 2004 Posts: 17 Location: hessen
|
Posted: Wed Dec 15, 2004 12:13 pm Post subject: |
|
|
No problem
I agree, the syslog-ng documentation (man pages) are not really helpfull.
There are so many features you don't expect. I have found this option here:
syslog-ng reference (Table 3-7)
Happy reading
bye _________________ # emerge moo |
|
Back to top |
|
|
|