The solution for the bug report you mentioned is the patch I've attached here.
From looking at the focal source for samba, it appears this patch is already included when security provided an update to version 4.13.14, last November. What version of Samba do you have installed? Does the issue resolve when you update to 2:4.13.17~dfsg-0ubuntu0.21.04.1 or newer? ** Patch added: "add_dir_create_or_exists_recursive.patch" https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1960754/+attachment/5560828/+files/add_dir_create_or_exists_recursive.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1960754 Title: gencache_init: Failed to create directory: /var/www/.cache/samba - Permission denied To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1960754/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs