Hello, New around here, i'm trying to use the owner option when logging into file. My configs: source s_udp { udp();}; destination df_hosts { file("/home/cosmin/SYSLOG/HOSTS/$HOST/$YEAR/$MONTH/$DAY/$FACILITY$YEAR$MONTH$DAY" owner(cosmin) group(cosmin) perm(0600) dir_perm(0700) create_dirs(yes)); }; log { source(s_udp); destination(df_hosts); }; The only problem is that files, are owned by root, not by cosmin. cosmin@DellCosmin:~/SYSLOG$ sudo ls -l HOSTS/ total 8 drwx------ 3 root root 4096 2011-04-22 10:41 10.90.0.252 drwx------ 3 root root 4096 2011-04-22 10:41 192.168.156.100 So, can someone tell me if i'm doing something wrong? I would like the files to be created and owned by cosmin:cosmin not root:root The process is running as root: cosmin@DellCosmin:~/SYSLOG$ ps -ef | grep syslog-ng root 3448 1 0 10:41 ? 00:00:00 /usr/sbin/syslog-ng -p /var/run/syslog-ng.pid -- Cosmin Neagu NOC Team Leader Str. I. G. Duca nr. 36 Otopeni, Judetul Ilfov, 075100 Romania Tel: 021 303 3159 / 0732 669 193 www.omnilogic.ro
Well, you can ignore this, i found it, i should have used dir_owner and dir_group... Cosmin Neagu NOC Team Leader Str. I. G. Duca nr. 36 Otopeni, Judetul Ilfov, 075100 Romania Tel: 021 303 3159 / 0732 669 193 www.omnilogic.ro On 04/22/2011 11:19 AM, Cosmin Neagu wrote:
Hello, New around here, i'm trying to use the owner option when logging into file. My configs:
source s_udp { udp();}; destination df_hosts {
file("/home/cosmin/SYSLOG/HOSTS/$HOST/$YEAR/$MONTH/$DAY/$FACILITY$YEAR$MONTH$DAY" owner(cosmin) group(cosmin) perm(0600) dir_perm(0700) create_dirs(yes)); }; log { source(s_udp); destination(df_hosts); };
The only problem is that files, are owned by root, not by cosmin. cosmin@DellCosmin:~/SYSLOG$ sudo ls -l HOSTS/ total 8 drwx------ 3 root root 4096 2011-04-22 10:41 10.90.0.252 drwx------ 3 root root 4096 2011-04-22 10:41 192.168.156.100
So, can someone tell me if i'm doing something wrong? I would like the files to be created and owned by cosmin:cosmin not root:root
The process is running as root: cosmin@DellCosmin:~/SYSLOG$ ps -ef | grep syslog-ng root 3448 1 0 10:41 ? 00:00:00 /usr/sbin/syslog-ng -p /var/run/syslog-ng.pid
participants (1)
-
Cosmin Neagu