From c518aea53ba1da546f0dbb9c67b0e9d45acd7c45 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Mon, 1 Jun 2020 00:44:06 -0400 Subject: [PATCH] [+] Add selinux notes for smb --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 14bc311..ef8f275 100644 --- a/README.md +++ b/README.md @@ -185,6 +185,15 @@ sctl enable smb nmb sctl start smb nmb ``` +Allow smb access with SELinux enabled +https://www.lisenet.com/2016/samba-server-on-rhel-7/ + +```bash +setsebool -P samba_export_all_ro=1 samba_export_all_rw=1 +semanage fcontext –at samba_share_t "/mnt/data(/.*)?" +restorecon -Rv /mnt/data +``` + If you are still using an NTFS drive: ```bash