On 01/19/15 22:25, worik wrote:
Summary:
The files under /var/www/htdocs are by default it seems all owned by
root:wheel. What are the issues with changing that to be a normal user?
The long version....
My work flow involves building a directory structure on another machine
and using 'rsync' when I am ready to transfer it to the OpenBSD machine
to be served by the public facing webserver.
Having the files owned by a user other than the one I log in as for a
rsync session is causing all sorts of headaches and warnings from rsync.
So I have changed the ownership of all the files and directories to be
foo:foo where 'foo' is the user/group name I login as. This makes my
life much simpler. But I have a nagging doubt that I am doing some
thing I will regret.
Perhaps I need to use rsync differently or modify my workflow....
Worik
rsync [OPTION...] SRC... rsync://user@[WEBSERVER]/var/www/htdocs
should allow you to set the user on the webserver - what errors are you
getting?
nginx runs chrooted by default, which should limit exploits.
I also chmod 644 or 640 if I'm feeling more paranoid all the files below
/var/www/htdocs - although the files are in group www.
hth
Fred