Error loading module '/usr/lib/x86_64-linux-gnu/samba/vfs/trim_perms.so': cannot open shared object file: No such file or directory
error probing vfs module 'trim_perms': NT_STATUS_UNSUCCESSFUL
smbd_vfs_init: vfs_init_custom failed for trim_perms
make_connection_snum: vfs_init failed for service IPC$
The trim_perms VFS module is missing from the system. It's referenced in the global [global] section:
vfs objects = trim_perms full_audit
Because this VFS module is loaded globally, every single share (including the built-in IPC$) fails to initialize. This is why no shares are accessible at all -- not even authentication-related ones work properly.
This is a fnOS (飞牛) custom VFS module (trim_perms.so) that was likely removed or not installed after a system update. The fix is to either: