On Sat, Sep 29, 2012 at 4:41 PM, Paul Schmehl <pschmehl_li...@tx.rr.com>wrote:

> I have a particularly thorny problem I'm trying to solve, but I'll bet
> FreeBSD has a solution.
>
> I'm running a webserver using suphp.  It's very picky about permissions.
> It wants the web server user (www) to be the owner of all directories and
> files.
>
> Meanwhile, the site owners want to be able to update and add files to the
> site.  When they update files everything is fine.  When they upload new
> files, the ownership of the file is user:user instead of www:user, so
> apache can't display them.
>
> Is there a way to "lock" a directory such that all files created in that
> directory are owned by the directory owner?  If not, I'll have to script
> something to change perms after uploads.
>

There is the suiddir option, see mount(8) and chmod(2).

-- 
Adam Vande More
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to