小编hot*_*arl的帖子

clamdscan 的套接字访问

在 fc29 上,我安装了 clamd 并且 clamd@scan.service 运行良好。clamdscan 可以为 root 运行,但不能为普通用户运行,即使添加到“clamscan”组后也是如此。

dnf list installed | grep clam

clamav.x86_64                               0.101.0-3.fc29                      @updates               
clamav-filesystem.noarch                    0.101.0-3.fc29                      @updates               
clamav-lib.x86_64                           0.101.0-3.fc29                      @updates               
clamav-update.x86_64                        0.101.0-3.fc29                      @updates               
clamd.x86_64                                0.101.0-3.fc29                      @updates               
Run Code Online (Sandbox Code Playgroud)

以 root 身份运行 clamdscan 效果很好

clamdscan --fdpass .

gpasswd -a reg_user clamscan
Run Code Online (Sandbox Code Playgroud)

当以 clamscan 组中的用户身份运行时 -

clamdscan --fdpass .
ERROR: Could not connect to clamd on LocalSocket /var/run/clamd.scan/clamd.sock: Permission denied
Run Code Online (Sandbox Code Playgroud)

仍然没有-

sudo -u reg_user clamdscan --fdpass .
ERROR: Could not connect to clamd on LocalSocket /var/run/clamd.scan/clamd.sock: Permission denied
Run Code Online (Sandbox Code Playgroud)

不出所料- …

clamav

6
推荐指数
0
解决办法
5463
查看次数

标签 统计

clamav ×1