[CentOS] Using Samba to share Apache web root, securely

Les Mikesell lesmikesell at gmail.com
Tue Aug 9 17:56:16 UTC 2011


On 8/9/2011 12:32 PM, Trey Dockendorf wrote:
>
>
> Now I have a new requirement passed to me, which is a bit more complicated.
>
> How would I allow individual users the ability only to access specific
> subfolders within that share without them being a part of the
> department_a group?  My initial idea was to make use of ACLs, but if the
> POSIX permissions don't allow them write access, then ACLs won't help,
> will they ?  The model is I need users of group department_a to have
> full control over this share while allowing individual faculty members
> to access only their personal folders within this share.

You could make a separate samba share with different ownership.  At some 
point it might make more sense to use a web-based content manager that 
understands logins/permissions or perhaps a wiki that permits uploads 
instead of randomly mapping file access around.  If the users in 
question already have home directories on the server you might make 
things work for individuals with symlinks out of their home directories 
that show up by default in samba - or map the URLs into the public_html 
directory you get with ~ expansion so the home directories are 
self-contained.

-- 
   Les Mikesell
    lesmikesell at gmail.com




More information about the CentOS mailing list