[+] Add selinux notes for smb

This commit is contained in:
Hykilpikonna
2020-06-01 00:44:06 -04:00
committed by GitHub
parent 3b62cc48e5
commit c518aea53b
+9
View File
@@ -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