[Samba] User shares do not appear anymore

Gabriele Bulfon gbulfon at sonicle.com
Thu Jan 26 17:44:55 UTC 2023


Hi, I have an Ubuntu system with samba 4 that did work perfectly until this morning.
Normal shares in smb.conf appeared as always, while user shares included with %U did not anymore.
This is the global part of smb.conf:

        security = user
        username map = /etc/samba/smbusers
        include = /etc/samba/smb.conf.%U
        include = /etc/samba/smb.conf.%m
 
There are then various smb.conf.[username] with custom shares for the user.
They always did work, but now they're completely ignored.
I find this in the log:
 
[2023/01/26 18:35:35.817936,  0] ../../source3/param/loadparm.c:3431(process_usershare_file)
  process_usershare_file: stat of /var/lib/samba/usershares/p failed. Permission denied
 
And /var/lib/samba/usershares is fine:

drwxrwx--T 2 root sambashare 4096 Jan 26 16:44 usershares
 
And all the path to both usershares and the real user share dir has normal permissions, never changed.
 
No update to the system, nothing.
No user, no windows version, not even smbclient can list the user shares.
 
Can you help?
Gabriele
 
Sonicle S.r.l. : http://www.sonicle.com
Music: http://www.gabrielebulfon.com
eXoplanets : https://gabrielebulfon.bandcamp.com/album/exoplanets
 



More information about the samba mailing list