Configuring SELinux
[Email protected] samba]# Getsebool-a | grep Samba finds restrictions on samba in SELinux
Samba_domain_controller--off
Samba_enable_home_dirs--off
Samba_export_all_ro--off
SAMBA_EXPORT_ALL_RW--off
Samba_share_nfs--off
Use_samba_home_dirs--off
Virt_use_samba--off
[[email protected] samba]# setsebool-p samba_export_all_rw=1 (=0 is off)
[Email protected] samba]# setsebool-p samba_export_all_ro=1
[Email protected] samba]# Getsebool-a | grep Samba
Samba_domain_controller--off
Samba_enable_home_dirs--off
Samba_export_all_ro-On (if the read-only shared file only opens this entry)
SAMBA_EXPORT_ALL_RW-On (if read and write, just open this entry, modify the file to see the file's Chmod property.) )
Samba_share_nfs--off
Use_samba_home_dirs--off
Virt_use_samba--off
If you do not want to share files, run the following statement
[Email protected] samba]# setsebool-p samba_export_all_rw=0
[Email protected] samba]# setsebool-p samba_export_all_ro=0
Releasing SMB services in Iptables and SELinux