[Samba] Strange logs: check_usershare_stat: file /var/lib/samba/usershares/ owned by uid 0 is not a regular file
jra at samba.org
Tue Dec 1 22:52:50 UTC 2020
On Tue, Dec 01, 2020 at 10:46:05PM +0000, Rowland penny via samba wrote:
>He is not alone, I didn't know I had a problem until I checked syslog,
>my lines are bit different:
>Dec 1 09:14:25 raspberrypi smbd: [2020/12/01 09:14:25.671948,
>Dec 1 09:14:25 raspberrypi smbd: process_usershare_file:
>stat of /var/lib/samba/usershares/profiles.v6 failed. Permission
The only thing inside /var/lib/samba/usershares/
should be usershare file definitions, owned by the
user who created them.
What is: /var/lib/samba/usershares/profiles.v6
and why is it there ?
>The messages are quite true, the files do not exist, this is on 4.13.2
>running as a Unix domain member. I cannot see anything in git that has
>changed that could cause this and do not remember seeing anything in
>syslog like this before. in this instance, they are only warnings, so
>why are they debug 0 ?
I chose debug zero because usershare files are *dangerous* if misconfigured.
Might grant access that should not be allowed.
Default value for max usershares as shipped by us should
be zero. Let distro's change that if they wish.
If there are strange files in /var/lib/samba/usershares you need
to do something about it and remove them :-).
That's why the debug 0. But why are they there and what
is in those files ?
More information about the samba