chcon -R -t samba_share_t /srv/exports/backups
This labels (recursively) the /srv/exports/backups share as a samba share.
But this change wont persist across a filesystem relabel. So, we have to do this:
semanage fcontext -a -t samba_share_t ’/srv/exports/backups(/.*)?’
restorecon -R -v /srv/exports/backups
restorecon -R -v /srv/exports/backups
For more tips and more options, see http://danwalsh.livejournal.com/14195.html .
No comments:
Post a Comment