samba enable FS share under SELinux on CentOS

list context of files or folders for selinux mandatory protection 

$ ls -lZd /

1. external USB disk

$ getsebool -a | grep fusefs









$ setsebool -P samba_share_fusefs on


2. nfs disk

$ setsebool -P samba_share_nfs on


3. create and enable home dirs

getsebool -a | grep samba










$ setsebool -P samba_create_home_dirs on

$ setsebool -P samba_enable_home_dirs on


4. global share ACL

$ setsebool -P samba_export_all_ro on

$ setsebool -P samba_export_all_rw on


這個網誌中的熱門文章

取消Excel與word網際網路與網路路徑超連結自動格式

Installing VMware workstation pro on Ubuntu 22.X (Jammy Jellyfish)