Releasing SMB services in Iptables and SELinux

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.