O que faz o 'process_usershare_file'?

3

Eu tenho um servidor samba que está me dando isso em logs para cada compartilhamento (neste caso, "Public" é o compartilhamento):

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)

O que o process_usershare_file deve fazer e todas as ideias por que ele está falhando?

Edit: Eu nem estou usando /var/lib/usershare/ . Eu não sei porque está olhando lá.

    
por Questionmark 02.09.2014 / 18:35

2 respostas

4

Versão resumida:

A máquina cliente está usando o MS Windows com o "Windows Defender" ativado.

O processo de verificação é responsável por esse spam de arquivo de log ...

Verificar: verifique dia e hora no cliente para executar a varredura "Windows Defender", compare com seus registros do SAMBA.

    
por 15.04.2016 / 01:58
0

Na página de manual do Stat :

Descrição

Essas funções retornam informações sobre um arquivo. Nenhuma permissão é necessária no próprio arquivo, mas, no caso de stat () e lstat (), a permissão execute (search) é necessária em todos os diretórios no caminho que leva ao arquivo.

Veja também este tutorial

Acredito que você precisa definir as permissões padrão.

Resposta para comentário :

The shares are defined in the background using the "net usershare" command and the definitions are saved in /var/lib/samba/usershares/ . Therefore, shares defined with this method are not visible in smb.conf.

Você definiu algum compartilhamento usando o CLI?

    
por 02.09.2014 / 18:52

Tags