Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
syslog-ng and logfile owner/group
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
rel
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2002
Posts: 137

PostPosted: Wed Dec 15, 2004 9:05 am    Post subject: syslog-ng and logfile owner/group Reply with quote

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
View user's profile Send private message
Prinzessin
n00b
n00b


Joined: 04 Feb 2004
Posts: 17
Location: hessen

PostPosted: Wed Dec 15, 2004 11:18 am    Post subject: Reply with quote

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
View user's profile Send private message
rel
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2002
Posts: 137

PostPosted: Wed Dec 15, 2004 12:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
Prinzessin
n00b
n00b


Joined: 04 Feb 2004
Posts: 17
Location: hessen

PostPosted: Wed Dec 15, 2004 12:13 pm    Post subject: Reply with quote

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 :D

bye
_________________
# emerge moo
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum