Logo Microtux

MicroTux

Samba share Selinux

03-01-2018

Caution!!
Don’t use the command chcon. This is only a temporarely solution! When your system reboot you have nothing left of your changes..
Write it to the policy:
semanage fcontext -a -t samba_share_t ”/mydir(/.*)?”
Then use the policy on your filesystem with the command:
restorecon -R -v /mydir