[Samba] Weird folders / files after upgrading to Samba 4.20
Michael Tokarev
mjt at tls.msk.ru
Thu Jul 18 09:52:24 UTC 2024
17.07.2024 10:54, Matthias Kühne | Ellerhold Aktiengesellschaft via samba wrote:
> Hello lovely samba-people,
Hi! :)
> after upgrading to 4.20 some file shares randomly get weird directories
> and files in them:
>
> drwxrwx---+ 3 AD-ELLERHOLD\user AD-ELLERHOLD\group 4.0K May 29 01:14 ''$'\352'
> drwxrwx---+ 3 AD-ELLERHOLD\user AD-ELLERHOLD\group 4.0K May 29 01:14 ''$'\324'
> drwxrwx---+ 3 AD-ELLERHOLD\user AD-ELLERHOLD\group 4.0K May 18 01:12 ''$'\001\002'
This looks like a listing from linux side, - is this a local linux filesystem view?
> As you can see samba creates folders with random (binary?!) names. Sometime parts of correct paths are used (see dir "_images" instead of the correct dir "my_images").
>
> Downgrading the fileserver back to 4.19 fixes this issue.
What do you mean "fixes" ? Are the "wrong" files disappear when
downgrading?
Do you know when these files gets created?
> As far as Im aware, these directories can be safely deleted because there may be files in them, nothing is lost. In this instance every expected file is in "images", "my-data" and "domain.de". The files in the extra dirs are nonsense.
>
> At first we thought its a problem with Windows clients, because shares that were access regularly by windows machines had the most problems, but the share above is ONLY used by another debian machine - mounted via cifs-utils! So only samba + cifs-utils may be the culprit here.
>
> We use Debian 12 Bookworm with samba 2:4.20.2+dfsg-5~mjt-deb12 on the server and client side. For cifs-utils the version 2:7.0-2 is used (client side).
>
> Does anybody have any clue whats happening here?
Not yet, I for one has never seen anything like this before.
Thanks,
/mjt
--
GPG Key transition (from rsa2048 to rsa4096) since 2024-04-24.
New key: rsa4096/61AD3D98ECDF2C8E 9D8B E14E 3F2A 9DD7 9199 28F1 61AD 3D98 ECDF 2C8E
Old key: rsa2048/457CE0A0804465C5 6EE1 95D1 886E 8FFB 810D 4324 457C E0A0 8044 65C5
Transition statement: http://www.corpit.ru/mjt/gpg-transition-2024.txt
More information about the samba
mailing list