[CentOS] Best location in filesystem to have a samba share

David McGuffey davidmcguffey at verizon.net
Wed Aug 25 02:03:14 UTC 2010


Everyone in the family has a digital camera or cell phone and they seem
to be leaving picture files all over their home folders, and laptops
with no sense of year/month/day taken or what they are about.

Looking to consolidate all the family pics in one location on a samba
share on the primary workstation that happens to have 2TB of mirrored
storage.

This is all behind a firewall that blocks smb protocols in and out, and
the iptables on the primary workstation will be set to only allow smb
to/from specific family laptops.

I have read the manuals...so I know one can get samba and selinux to
dance together.

But...I don't really want to set a boolean so that all the /home folders
can be shared.  Would rather create a separate folder and give it the
correct selinux context, but there is a warning to be careful to not use
a "system folder" because they already have the proper selinux contexts.

So...if one were to create a new folder and share it out via samba,
where would be the best location to create it so as to not conflict with
the selinux contexts of the distro?  

/usr/share?  /usr/local/share? /usr/mnt?  somewhere in /var? or
somewhere else?

Dave M





More information about the CentOS mailing list