免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 30439 | 回复: 0

[samba] 求问在freebsd下samba的audit功能使用 [复制链接]

论坛徽章:
0
发表于 2019-12-14 16:53 |显示全部楼层
我之前在centos7上用samba的audit功能是可以的。
这次在freebsd 12上,没有能成功,日志片断如下,网上搜索也没有找到类似问题,不知道可能是哪方面的问题?

日志:
Dec 14 16:42:09 film-srv smbd_audit[23111]: root|172.16.5.6|s|readdir_attr|fail (Operation not supported)|download/Rambo.Last.Blood.2019.720p.BluRay.x264-WiKi/Rambo.Last.Blood.2019.720p.BluRay.x264-WiKi.mkv
Dec 14 16:42:09 film-srv smbd_audit[23111]: root|172.16.5.6|s|translate_name|fail (Operation not supported)|
Dec 14 16:42:09 film-srv smbd_audit[23111]: root|172.16.5.6|s|get_dos_attributes|fail (Operation not supported)|download/Rambo.Last.Blood.2019.720p.BluRay.x264-WiKi/Sample
Dec 14 16:42:09 film-srv smbd_audit[23111]: root|172.16.5.6|s|readdir_attr|fail (Operation not supported)|download/Rambo.Last.Blood.2019.720p.BluRay.x264-WiKi/Sample
Dec 14 16:42:09 film-srv smbd_audit[23112]: root|172.16.5.6|s|get_dos_attributes|fail (Operation not supported)|download/Rambo.Last.Blood.2019.720p.BluRay.x264-WiKi/Rambo.Last.Blood.2019.720p.BluRay.x264-WiK

samba的共享配置:

[qbittorrent]

        vfs objects = full_audit
        full_audit:prefix = %u|%I|s
        full_audit:failure = all
        full_audit:sucess = mkdir rmdir read pread write pwrite sendfile rename unlink
        full_audit:facility = local7
        full_audit:priority = notice
        comment = film
        path = /zroot/qbittorrent
        valid users = root
        writable = yes



这是centos上的正常日志:
Dec 14 16:49:32 file-srv smbd_audit: tongzmygc|192.168.19.74|共享包|realpath|ok|mygcmygc(月底前上报)/2019/201910
Dec 14 16:49:32 file-srv smbd_audit: tongzmygc|192.168.19.74|共享包|connectpath|ok|mygcmygc(月底前上报)/2019/201910
Dec 14 16:49:32 file-srv smbd_audit: tongzmygc|192.168.19.74|共享包|connectpath|ok|mygcmygc(月底前上报)/2019/201910
Dec 14 16:49:32 file-srv smbd_audit: tongzmygc|192.168.19.74|共享包|fdopendir|ok|mygcmygc(月底前上报)/2019
Dec 14 16:49:32 file-srv smbd_audit: tongzmygc|192.168.19.74|共享包|fdopendir|ok|mygcmygc(月底前上报)/2019
Dec 14 16:49:32 file-srv smbd_audit: tongzmygc|192.168.19.74|共享包|stat|ok|mygcmygc(月底前上报)/2019/201910
Dec 14 16:49:32 file-srv smbd_audit: tongzmygc|192.168.19.74|共享包|stat|ok|mygcmygc(月底前上报)/2019/201910
Dec 14 16:49:32 file-srv smbd_audit: tongzmygc|192.168.19.74|共享包|get_alloc_size|ok|0
Dec 14 16:49:32 file-srv smbd_audit: tongzmygc|192.168.19.74|共享包|get_alloc_size|ok|0
Dec 14 16:49:32 file-srv smbd_audit: tongzmygc|192.168.19.74|共享包|file_id_create|ok|fd04:3c0264:0
Dec 14 16:49:32 file-srv smbd_audit: tongzmygc|192.168.19.74|共享包|file_id_create|ok|fd04:3c0264:0




您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP