`process_usershare_file` 有什么作用?

`process_usershare_file` 有什么作用?

我有一个 samba 服务器,它在每个共享的日志中为我提供此信息(在本例中“公共”是共享):

Sep  2 07:49:42 MyServer smbd[31606]: [2014/09/02 07:49:42.398065,  0] param/loadparm.c:9114(process_usershare_file)
Sep  2 07:49:42 MyServer smbd[31606]:   process_usershare_file: stat of /var/lib/samba/usershares/publi failed. Permission denied
Sep  2 07:49:42 MyServer smbd[31606]: [2014/09/02 07:49:42.398688,  0] param/loadparm.c:9114(process_usershare_file)
Sep  2 07:49:42 MyServer smbd[31606]:   process_usershare_file: stat of /var/lib/samba/usershares/publi failed. No such file or directory
Sep  2 07:49:42 MyServer smbd[31606]: [2014/09/02 07:49:42.400642,  0] param/loadparm.c:9114(process_usershare_file)
Sep  2 07:49:42 MyServer smbd[31606]:   process_usershare_file: stat of /var/lib/samba/usershares/publi failed. Permission denied
Sep  2 07:49:42 MyServer smbd[31606]: [2014/09/02 07:49:42.401232,  0] param/loadparm.c:9114(process_usershare_file)
Sep  2 07:49:42 MyServer smbd[31606]:   process_usershare_file: stat of /var/lib/samba/usershares/publi failed. No such file or directory
Sep  2 07:49:42 MyServer smbd[31606]: [2014/09/02 07:49:42.403194,  0] param/loadparm.c:9114(process_usershare_file)
Sep  2 07:49:42 MyServer smbd[31606]:   process_usershare_file: stat of /var/lib/samba/usershares/publi failed. Permission denied
Sep  2 07:49:42 MyServer smbd[31606]: [2014/09/02 07:49:42.403814,  0] param/loadparm.c:9114(process_usershare_file)
Sep  2 07:49:42 MyServer smbd[31606]:   process_usershare_file: stat of /var/lib/samba/usershares/publi failed. No such file or directory
Sep  2 07:49:42 MyServer smbd[31606]: [2014/09/02 07:49:42.404843,  0] param/loadparm.c:9114(process_usershare_file)
Sep  2 07:49:42 MyServer smbd[31606]:   process_usershare_file: stat of /var/lib/samba/usershares/public.bat failed. Permission denied
Sep  2 07:49:42 MyServer smbd[31606]: [2014/09/02 07:49:42.405536,  0] param/loadparm.c:9114(process_usershare_file)
Sep  2 07:49:42 MyServer smbd[31606]:   process_usershare_file: stat of /var/lib/samba/usershares/public.bat failed. No such file or directory
Sep  2 07:49:42 MyServer smbd[31606]: [2014/09/02 07:49:42.406666,  0] param/loadparm.c:9114(process_usershare_file)
Sep  2 07:49:42 MyServer smbd[31606]:   process_usershare_file: stat of /var/lib/samba/usershares/public.cmd failed. Permission denied
Sep  2 07:49:42 MyServer smbd[31606]: [2014/09/02 07:49:42.407276,  0] param/loadparm.c:9114(process_usershare_file)
Sep  2 07:49:42 MyServer smbd[31606]:   process_usershare_file: stat of /var/lib/samba/usershares/public.cmd failed. No such file or directory
Sep  2 07:49:42 MyServer smbd[31606]: [2014/09/02 07:49:42.408284,  0] param/loadparm.c:9114(process_usershare_file)
Sep  2 07:49:42 MyServer smbd[31606]:   process_usershare_file: stat of /var/lib/samba/usershares/public.exe failed. Permission denied
Sep  2 07:49:42 MyServer smbd[31606]: [2014/09/02 07:49:42.408987,  0] param/loadparm.c:9114(process_usershare_file)
Sep  2 07:49:42 MyServer smbd[31606]:   process_usershare_file: stat of /var/lib/samba/usershares/public.exe failed. No such file or directory
Sep  2 07:49:42 MyServer smbd[31606]: [2014/09/02 07:49:42.410125,  0] param/loadparm.c:9114(process_usershare_file)
Sep  2 07:49:42 MyServer smbd[31606]:   process_usershare_file: stat of /var/lib/samba/usershares/public.com failed. Permission denied
Sep  2 07:49:42 MyServer smbd[31606]: [2014/09/02 07:49:42.410716,  0] param/loadparm.c:9114(process_usershare_file)
Sep  2 07:49:42 MyServer smbd[31606]:   process_usershare_file: stat of /var/lib/samba/usershares/public.com failed. No such file or directory
Sep  2 07:49:42 MyServer smbd[31606]: [2014/09/02 07:49:42.411692,  0] param/loadparm.c:9114(process_usershare_file)
Sep  2 07:49:42 MyServer smbd[31606]:   process_usershare_file: stat of /var/lib/samba/usershares/public.pif failed. Permission denied
Sep  2 07:49:42 MyServer smbd[31606]: [2014/09/02 07:49:42.412420,  0] param/loadparm.c:9114(process_usershare_file)
Sep  2 07:49:42 MyServer smbd[31606]:   process_usershare_file: stat of /var/lib/samba/usershares/public.pif failed. No such file or directory
Sep  2 07:49:42 MyServer smbd[31606]: [2014/09/02 07:49:42.413585,  0] param/loadparm.c:9114(process_usershare_file)
Sep  2 07:49:42 MyServer smbd[31606]:   process_usershare_file: stat of /var/lib/samba/usershares/public.lnk failed. Permission denied
Sep  2 07:49:42 MyServer smbd[31606]: [2014/09/02 07:49:42.414163,  0] param/loadparm.c:9114(process_usershare_file)
Sep  2 07:49:42 MyServer smbd[31606]:   process_usershare_file: stat of /var/lib/samba/usershares/public.lnk failed. No such file or directory
Sep  2 07:49:42 MyServer smbd[31606]: [2014/09/02 07:49:42.415144,  0] param/loadparm.c:9114(process_usershare_file)
Sep  2 07:49:42 MyServer smbd[31606]:   process_usershare_file: stat of /var/lib/samba/usershares/public.dll failed. Permission denied
Sep  2 07:49:42 MyServer smbd[31606]: [2014/09/02 07:49:42.415857,  0] param/loadparm.c:9114(process_usershare_file)
Sep  2 07:49:42 MyServer smbd[31606]:   process_usershare_file: stat of /var/lib/samba/usershares/public.dll failed. No such file or directory
Sep  2 07:49:42 MyServer smbd[31606]: [2014/09/02 07:49:42.418115,  0] param/loadparm.c:9114(process_usershare_file)
Sep  2 07:49:42 MyServer smbd[31606]:   process_usershare_file: stat of /var/lib/samba/usershares/publi failed. Permission denied
Sep  2 07:49:42 MyServer smbd[31606]: [2014/09/02 07:49:42.418842,  0] param/loadparm.c:9114(process_usershare_file)
Sep  2 07:49:42 MyServer smbd[31606]:   process_usershare_file: stat of /var/lib/samba/usershares/publi failed. No such file or directory
Sep  2 07:49:42 MyServer smbd[31606]: [2014/09/02 07:49:42.424562,  0] param/loadparm.c:9114(process_usershare_file)
Sep  2 07:49:42 MyServer smbd[31606]:   process_usershare_file: stat of /var/lib/samba/usershares/publi failed. Permission denied
Sep  2 07:49:42 MyServer smbd[31606]: [2014/09/02 07:49:42.427558,  0] param/loadparm.c:9114(process_usershare_file)
Sep  2 07:49:42 MyServer smbd[31606]:   process_usershare_file: stat of /var/lib/samba/usershares/publi failed. No such file or directory
Sep  2 07:49:42 MyServer smbd[31606]: [2014/09/02 07:49:42.433017,  0] param/loadparm.c:9114(process_usershare_file)
Sep  2 07:49:42 MyServer smbd[31606]:   process_usershare_file: stat of /var/lib/samba/usershares/publi failed. Permission denied
Sep  2 07:49:42 MyServer smbd[31606]: [2014/09/02 07:49:42.436073,  0] param/loadparm.c:9114(process_usershare_file)
Sep  2 07:49:42 MyServer smbd[31606]:   process_usershare_file: stat of /var/lib/samba/usershares/publi failed. No such file or directory
Sep  2 07:49:42 MyServer smbd[31606]: [2014/09/02 07:49:42.441569,  0] param/loadparm.c:9114(process_usershare_file)
Sep  2 07:49:42 MyServer smbd[31606]:   process_usershare_file: stat of /var/lib/samba/usershares/publi failed. Permission denied
Sep  2 07:49:42 MyServer smbd[31606]: [2014/09/02 07:49:42.444667,  0] param/loadparm.c:9114(process_usershare_file)

应该做什么process_usershare_file,以及为什么失败的任何想法?

编辑:我什至根本没有使用/var/lib/usershare/。我不知道它为什么在那里看。

答案1

简洁版本:

客户端计算机使用 MS Windows“Windows Defender的”已启用。

扫描过程负责日志文件垃圾邮件......

验证:检查客户端上运行“Windows Defender”扫描的日期和时间,与您的 SAMBA 日志进行比较。

答案2

来自统计手册页:

描述

这些函数返回有关文件的信息。文件本身不需要任何权限,但在 stat() 和 lstat() 的情况下 - 通向该文件的路径中的所有目录都需要执行(搜索)权限。

也可以看看本教程

我相信您需要设置默认权限。


回复评论:

共享是使用“net usershare”命令在后台定义的,定义保存在 /var/lib/samba/usershares/ 中。因此,使用此方法定义的共享在 smb.conf 中不可见。

您是否使用 CLI 设置了任何共享?

相关内容