[syslog-ng] owner and group of create dirs

Tomohiro Yamauchi handy@nid.co.jp
Fri, 02 Jun 2000 12:12:57 +0900 (JST)


Hi,

From: Balazs Scheidler <bazsi@balabit.hu>
Subject: Re: [syslog-ng] owner and group of create dirs
Date: Thu, 1 Jun 2000 11:02:56 +0200
Message-ID: <20000601110256.C1230@balabit.hu>

> > Hi, My syslog-ng.conf is 
> > 
> > destination  std  { file("/var/log/$HOST/$FACILITY.debug/$YEAR$MONTH/$FACILITY.debug$YEAR$MONTH$DAY" owner(admin) group(admin) perm(0600) dir_perm(0700) create_dirs(yes)); };
> > 
> > If /var/log/$HOST/$FACILITY.debug/$YEAR$MONTH is not exist,
> > make that dirs. But that's owner is root:other. I think because
> > daemon's effective user ID is root.
> > 
> > I want to change dir's owner. Is this possible?
> 
> yes, you can do this using the owner(), group() and perm() options. you can
> even have syslog-ng to create the directories for you using the
> 
> create_dirs(yes) option.

Hmmm, perhaps my english is poor :-)

Sorry, my request is not to create directories.
I want to change owner and group of created directories
by syslog-ng.

My system is SPARC/Solaris7 and syslog-ng 1.4.4.
I think owner() and group() are effective to destination
file only.

--
Tomohiro Yamauchi	handy@nid.co.jp