SElinux and Samba Share problem

Hi
I am having problem with samba share. I am using Tumbleweed on Raspberry pi4b. I used [openSUSE-Tumbleweed-ARM-KDE-raspberrypi.aarch64-2025.06.04-Snapshot20250714.raw.xz] image. I set sumba shares then smb service seems to failing. But if I turn off selinux during boot and edit “selinux=0” then smb service works fine.

and output of “sudo journalctl -xeu smb.service” is

Jul 19 20:30:34 SuSePrint systemd[1]: smb.service: start-pre operation timed out. Terminating.
Jul 19 20:30:34 SuSePrint systemd[1]: smb.service: Control process exited, code=killed, status=15/TERM
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: systemd-devel Info Page
░░
░░ An ExecStartPre= process belonging to unit smb.service has exited.
░░
░░ The process’ exit code is ‘killed’ and its exit status is 15.
Jul 19 20:30:34 SuSePrint systemd[1]: smb.service: Failed with result ‘timeout’.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: systemd-devel Info Page
░░
░░ The unit smb.service has entered the ‘failed’ state with result ‘timeout’.
Jul 19 20:30:34 SuSePrint systemd[1]: Failed to start Samba SMB Daemon.
░░ Subject: A start job for unit smb.service has failed
░░ Defined-By: systemd
░░ Support: systemd-devel Info Page
░░
░░ A start job for unit smb.service has finished with a failure.
░░
░░ The job identifier is 2574 and the job result is failed.
Jul 19 20:30:34 SuSePrint systemd[1]: smb.service: Consumed 29.013s CPU time.
░░ Subject: Resources consumed by unit runtime
░░ Defined-By: systemd
░░ Support: systemd-devel Info Page
░░
░░ The unit smb.service completed and consumed the indicated resources.

and journals like :

Jul 19 20:51:52 SuSePrint systemd[1]: Starting Samba SMB Daemon…
Jul 19 20:51:53 SuSePrint update-samba-security-profile[1804]: Reloading updated selinux profile for Samba…
Jul 19 20:51:56 SuSePrint update-samba-security-profile[1828]: ValueError: File context for /home/groups(/.)? is not defined
Jul 19 20:51:56 SuSePrint update-samba-security-profile[1830]: restorecon: lstat(/home/groups) failed: No such file or directory
Jul 19 20:51:59 SuSePrint update-samba-security-profile[1834]: ValueError: File context for /var/lib/samba/drivers(/.
)? is not defined

Apart from the obligatory comment that your post is unreadable and you should always use preformatted text when posting computer output - if you identified the problem as SELinux, you need to open bug report.

https://en.opensuse.org/openSUSE:Bugreport_SELinux

1 Like

I am sorry if I made some sort of mistake, the tone of you reply was bit harsh. Anyways, I am not 100% sure if it is the SELinux bug or something I made. I was just looking for someone willing to point me to right direction, before reporting any bug. So I want to be sure that is it worth reporting.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.