On Mon, Aug 04, 2014 at 09:18:27PM +0200, li...@rhsoft.net wrote:

> why is "access denied" here reported?

The "/run" directory is on many systems restricted to root.
Your permissions checks start one level lower and are tested
as "root".

> [root@testserver:~]$ stat /run/clamav-milter/
>   File: '/run/clamav-milter/'
>   Size: 60              Blocks: 0          IO Block: 4096   directory
> Device: 11h/17d Inode: 585885      Links: 2
> Access: (0755/drwxr-xr-x)  Uid: (  109/ clamilt)   Gid: (  106/ clamilt)
> Access: 2014-08-04 21:13:24.469625838 +0200
> Modify: 2014-08-04 21:07:45.177892263 +0200
> Change: 2014-08-04 21:12:32.632279822 +0200
>  Birth: -
> 
> [root@testserver:~]$ stat /run/clamav-milter/clamav-milter.socket
>   File: '/run/clamav-milter/clamav-milter.socket'
>   Size: 0               Blocks: 0          IO Block: 4096   socket
> Device: 11h/17d Inode: 593875      Links: 1
> Access: (0644/srw-r--r--)  Uid: (  109/ clamilt)   Gid: (  106/ clamilt)
> Access: 2014-08-04 21:07:45.177892263 +0200
> Modify: 2014-08-04 21:07:45.177892263 +0200
> Change: 2014-08-04 21:07:45.177892263 +0200

-- 
        Viktor.

Reply via email to