Dear Trevor, On 03/22/2012 11:08 PM, Trevor Hemsley wrote: > Hi Timothy > > I was reading your page on setting up Samba on the CentOS wiki > http://wiki.centos.org/HowTos/SetUpSamba and there is something that > could be improved there. You use chcon to set up the SELinux contexts > and this would be wiped out if a filesystem relabel is done. It would be > better to use > > semanage fcontext -a -t samba_share_t '/mnt/data(/.*)?' > restorecon -R /mnt/data > > as that not only sets the context now but also reapplies it if a file > system relabel is done at some future point (and I believe that > sometimes an update to the selinux-policy package will force one, though > very rarely). > > Otherwise, good page, thanks! Thank you for your suggestions. I've put in your recommended changes. Regards, Timothy _______________________________________________ CentOS-docs mailing list CentOS-docs@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos-docs