Page 1 of 1

[SAMBA] bug share_info.tdb (Permission denied) Samba 4.19-5

Published: April 26, 2024 - 8:29 AM
by flipflip
Hello everyone,

Yesterday I came across a bug with version 4.19-5 and probably version 4.19-6 of Samba.

When I try to access the "Sharing Permissions" or "Security" tab of a share from Windows in the Samba logs, I get the message

Code: Select all

... rpcd_classic[1827]: [2024/04/25 11:39:58.511922,  0] ../../source3/lib/sharesec.c:161(share_info_db_init)
... rpcd_classic[1827]:   Failed to open share info database /var/lib/samba/share_info.tdb (Permission denied)
After exchanging messages on the Samba mailing list (https://lists.samba.org/archive/samba/2...48599.htmlI was told that this is a known bug: https://bugzilla.samba.org/show_bug.cgi?id=15265 The fix has been made or will be made for version 4.20 but not backported for earlier versions.

For the moment, the workaround I've found (a crude one for my tests) is to apply

Code: Select all

chmod 777 /var/lib/samba/share_info.tdb
There's surely a way to fine-tune the chmod.