Hi Thomas,

can it be that your default umask gets into your way? In any case, you
can set the permissions explicitely with

$FileCreateMode
$FileGroup
$FileOwner

And set the umask with

$umask

(see http://www.rsyslog.com/doc-rsyslog_conf_global.html)

Does this help?

Rainer

> -----Original Message-----
> From: [email protected] [mailto:rsyslog-
> [email protected]] On Behalf Of Thomas Mieslinger
> Sent: Friday, March 06, 2009 10:18 AM
> To: rsyslog-users
> Subject: [rsyslog] wrong permissons on directories
> 
> Hi *,
> 
> when creating directories through dynamic templates, the directory
> permissons are incomplete:
> 
> rsyslog.conf:
> $template
>
ZeusMwAllLogFileService,"/data/log/zeusmw/%$YEAR%-%$MONTH%/all-%$YEAR%-
> %$MONTH%-%$DAY%.log"
> 
> resulting directories:
> ls -al /data/log
> drw-r--r-- 3 root root 4096 Mar  5 15:53 zeusmw/
> 
> ls -al /data/log/zeusmw
> drw-r--r-- 2 root root 4096 Mar  6 10:11 2009-03/
> 
> # rsyslogd -version
> rsyslogd 3.21.3, compiled with:
>       FEATURE_REGEXP:                         Yes
>       FEATURE_LARGEFILE:                      Yes
>       FEATURE_NETZIP (message compression):   Yes
>       GSSAPI Kerberos 5 support:              Yes
>       FEATURE_DEBUG (debug build, slow code): No
>       Runtime Instrumentation (slow code):    No
> 
> (its the rsyslog-3.21.3-4 fedora 10 package compiled on rhel5)
> 
> I'd be happy to know if thats a bug.
> 
> Thanks
> Thomas
> 
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com

Reply via email to