Help me understand this SAMBA error

  • I am seeing this collection of errors/warnings in red when I run journalctl -e

    Code
    Mar 29 14:56:05 GTOFileServer smbd[11955]: [2022/03/29 14:56:05.308048,  0] ../../source3/param/loadparm.c:3403(process_usershare_file)
    Mar 29 14:56:05 GTOFileServer smbd[11955]:   process_usershare_file: share name /cifs._smb._tcp.local./timemachine contains invalid characters (any of %<>*?|/\+=;:",)
    Mar 29 14:56:05 GTOFileServer smbd[11955]: [2022/03/29 14:56:05.373194,  0] ../../source3/param/loadparm.c:3403(process_usershare_file)
    Mar 29 14:56:05 GTOFileServer smbd[11955]:   process_usershare_file: share name /cifs._smb._tcp.local./ipc$ contains invalid characters (any of %<>*?|/\+=;:",)
    Mar 29 14:56:05 GTOFileServer smbd[11955]: [2022/03/29 14:56:05.392911,  0] ../../source3/param/loadparm.c:3428(process_usershare_file)
    Mar 29 14:56:05 GTOFileServer smbd[11955]:   process_usershare_file: stat of /var/lib/samba/usershares/cifs._smb._tcp.local failed. Permission denied

    Note the little non-ASCII char at the end of "/var/lib/samba/usershares/cifs._smb._tcp.local"


    I'm not sure how to figure out and correct the problem.

  • I'm having the same problem on a shared folder I'm using with Time Machine backup, although I don't have that "" at the end. I think "/" is the invalid character smbd is complaining about -- client seems to be trying to access a share named "/cifs._smb._tcp.local./tm-macbook-air" which I guess is invalid because it contains "/". Not sure why Time Machine is using that share name, instead of just "tm-macook-air".



    Code
    root@rpi4:/var/log# journalctl -g usershare
    [...]
    Jun 30 19:16:22 rpi4 smbd[54944]: [2022/06/30 19:16:22.460035,  0] ../../source3/param/loadparm.c:3403(process_usershare_file)
    Jun 30 19:16:22 rpi4 smbd[54944]:   process_usershare_file: share name /cifs._smb._tcp.local./tm-macbook-air contains invalid characters (any of %<>*?|/\+=;>
    Jun 30 19:45:45 rpi4 smbd[56263]: [2022/06/30 19:45:45.046264,  0] ../../source3/param/loadparm.c:3403(process_usershare_file)
    Jun 30 19:45:45 rpi4 smbd[56263]:   process_usershare_file: share name /cifs._smb._tcp.local./tm-macbook-air contains invalid characters (any of %<>*?|/\+=;>
    Jun 30 23:56:30 rpi4 smbd[66987]: [2022/06/30 23:56:30.691542,  0] ../../source3/param/loadparm.c:3403(process_usershare_file)
    Jun 30 23:56:30 rpi4 smbd[66987]:   process_usershare_file: share name /cifs._smb._tcp.local./tm-macbook-air contains invalid characters (any of %<>*?|/\+=;>
    Jul 01 03:12:27 rpi4 smbd[77468]: [2022/07/01 03:12:27.907119,  0] ../../source3/param/loadparm.c:3403(process_usershare_file)
    Jul 01 03:12:27 rpi4 smbd[77468]:   process_usershare_file: share name /cifs._smb._tcp.local./tm-macbook-air contains invalid characters (any of %<>*?|/\+=;>

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!