Greetings,
I am trying to get my RH6.1 box set up to make maintaining the
web sites hosted on it easy to do. Web files live in a user
directory in /home/<username>/html. I also have a user called
webmister, and in his home directory, I have symlinks to all the
sites that are hosted off the box. The virtual website path is
then /home/webmister/<sitename>.
I want to set up the file permissions so that <username> has
full rights to their html directory, so they can maintain their
files, and I also want user webmister to have full rights to
change files in /home/webmister/<sitename>, so that he can
maintain files on behalf of the user.
Naturally the web server has to be able to get to everything too.
Preferably /home/<username> should not be world-readable, which
it is now. If I 'chmod 700' on that directory, the webserver
can no longer get to the files, even though I have it looking
at them as /home/webmister/<sitename>.
All files in /home/<username> should be owner.group to <username>.
I was hoping that I could put the webmister user into each of the
<username> groups, and then it would be able to change files in
the symlinked directory (since the <username> group will have
full permissions to them).
I'm pretty sure I just don't understand how file permissions
work, but I've been trying to make this work for a while, and
I'm not having much luck. Probably the most baffling part is
Apache not being able to see the files when I change the permissions
on /home/<username>, when its not accessing the files through
that path.
Thanks,
DK
--
"When you pay off the firstbaseman every month, who gets the money?"
"Every dollar of it." --Who's on First?