Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   CentOS Docs (http://www.linux-archive.org/centos-docs/)
-   -   Centos SetUpSamba wiki page (http://www.linux-archive.org/centos-docs/647910-centos-setupsamba-wiki-page.html)

Timothy Lee 03-23-2012 02:22 AM

Centos SetUpSamba wiki page
 
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@centos.org
http://lists.centos.org/mailman/listinfo/centos-docs


All times are GMT. The time now is 06:30 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.