Systemd user config (~/.config/systemd/user/*) typically cannot be shared over Samba due to different SELinux context (unconfined_u:object_r:systemd_unit_file_t:s0) than home files (unconfined_u:object_r:user_home_t:s0), even if home directory sharing is turned on (sudo setsebool -P samba_enable_home_dirs on). In order to share them, we need to add a custom SELinux policy module.
Try to connect to the systemd user folder with your phone.
Check the denial with:
sudo ausearch -m AVC -c smbd --start recentIt should show as:
----
time->Sat Jun 27 15:25:48 2026
type=AVC msg=audit(1782554148.035:485): avc: denied { read } for pid=26265 comm="smbd[192.168.0." name="user" dev="dm-1" ino=3687733 scontext=system_u:system_r:smbd_t:s0 tcontext=unconfined_u:object_r:systemd_unit_file_t:s0 tclass=dir permissive=0Generate a .te file with read permission:
sudo ausearch -m AVC -c smbd --start recent | audit2allow -M my_samba_systemdsudo checkmodule -M -m -o my_samba_systemd.mod my_samba_systemd.tesudo semodule_package -o my_samba_systemd.pp -m my_samba_systemd.modsudo semodule -i my_samba_systemd.ppThe command automatically compiles and immediately loads the new policy rules straight into the running kernel. It takes effect instantly.
sudo semodule -l | grep my_samba_systemdsudo systemctl restart smb