[Samba] Strange logs: check_usershare_stat: file /var/lib/samba/usershares/ owned by uid 0 is not a regular file

Andrew Bartlett abartlet at samba.org
Tue Dec 1 17:27:54 UTC 2020


On Tue, 2020-12-01 at 14:30 +0000, Roy Eastwood via samba wrote:
> These logs:
> 
> 	Dec  1 09:31:16 lxd-m1 smbd[26323]:   check_usershare_stat:
> file /var/lib/samba/usershares/ owned by uid 0 is not a regular
> file
> 
> have started to appear this morning in sysvol.   25 such logs
> appeared within a minute.  No changes have been made for some time on
> this machine.  It's a member server running samba 4.13.2 on Debian
> Buster.    Is this a known bug?

So first question:  What is it?

That is, Samba gives this error, so what does a manual shell inspection
with ls -l and stat etc give?

Usershare functionality is configured via your smb.conf.

Andrew Bartlett

-- 
Andrew Bartlett (he/him)       https://samba.org/~abartlet/
Samba Team Member (since 2001) https://samba.org
Samba Team Lead, Catalyst IT   https://catalyst.net.nz/services/samba





More information about the samba mailing list