Hello Kriљtof, Tuesday, May 17, 2005, 3:22:21 PM, you wrote:
KP> Tomasz Kojm wrote: >>On Tue, 17 May 2005 12:55:36 +0200 >>Kriљtof Petr <[EMAIL PROTECTED]> wrote: >> >> >> >>>Sergey is right. This bug is not fixed. >>> >>> >>>May 17 12:36:41 server clamd: clamd startup succeeded >>>May 17 12:36:41 server clamd[27991]: HTML support enabled. >>>May 17 12:36:41 server clamd[27991]: Self checking every 1800 seconds. >>>May 17 12:36:54 server clamav-milter: /var/log/clamav/clamd.log: >>>Permission denied >>> >>> >> >>The original bug was related to /dev/console. The above seems like >>a standard permission problem. >> >> KP> I reported this bug one week before. But once again: KP> # uname -mpio KP> i686 i686 i386 GNU/Linux KP> # clamd -V KP> ClamAV 0.85.1/882/Tue May 17 08:48:03 2005 KP> # clamav-milter -V KP> ClamAV version 0.85.1, clamav-milter version 0.85 KP> # ll /var/log KP> total 42860 KP> drwxr-xr-x 14 root root 4096 May 17 12:36 . KP> drwxr-xr-x 23 root root 4096 Jan 7 14:52 .. KP> -rw------- 1 root root 21573 Feb 1 04:02 boot.log.4 KP> drwxr-xr-x 2 clamav clamav 4096 May 17 13:05 clamav KP> -rw-r--r-- 1 root root 183414 May 17 13:01 cron KP> # ll /var/log/clamav/ KP> total 16 KP> drwxr-xr-x 2 clamav clamav 4096 May 17 13:08 . KP> drwxr-xr-x 14 root root 4096 May 17 12:36 .. KP> -rw-r----- 1 clamav clamav 474 May 17 13:05 freshclam.log KP> # service clamd start KP> Starting Clam AV daemon: [ OK ] KP> # ll /var/log/clamav/ KP> total 20 KP> drwxr-xr-x 2 clamav clamav 4096 May 17 13:09 . KP> drwxr-xr-x 14 root root 4096 May 17 12:36 .. KP> -rw-r----- 1 root root 1417 May 17 13:09 clamd.log KP> -rw-r----- 1 clamav clamav 474 May 17 13:05 freshclam.log KP> # service clamav-milter start KP> Starting clamav-milter: [FAILED] KP> # tail -f /var/log/messages KP> May 17 13:13:42 server clamav-milter: /var/log/clamav/clamd.log: KP> Permission denied KP> and clamav-milter is not running. KP> # grep User /etc/clamd.conf KP> User clamav KP> My observation is: clamav creates log file with root permission, KP> so user clamav cannt write to log. KP> Are there some developers who believes that non-priviledged user clamav KP> can write to logfile with bad permissions (0640 root.root clamd.log)? KP> This assumption is wrong on some unix like OSes, Im affraid. KP> Clamav should create log file with same owner as defined in clamd.conf KP> to work it properly. i've just noticed the same thing. clamd.log is made by root. but 0.84 doesn't care about that it works properly. -- Best regards, Sergey mailto:[EMAIL PROTECTED] _______________________________________________ http://lurker.clamav.net/list/clamav-users.html