[Fedora] Re: Separate shell and www servers...
Aaron Gaudio
prothonotar at tarnation.dyndns.org
Tue Aug 17 19:06:52 UTC 2004
On Tue, 2004-08-17 at 11:12 -0600, Rodolfo J. Paiz wrote:
> On Tue, 2004-08-17 at 09:18, Ashley M. Kirchner wrote:
> > However, how do you deal with automatic user creation, and assigning
> > permissions to, say /usr/www/bob? When you use useradd to add a new
> > user, it only assigns permissions to the $HOME directory. As far as I
> > can see, I'd have to manually go create /usr/www/bob, and chown it to
> > user bob.
> >
>
> You script it, that's how. Note that the following is "pseudo-code" and
> will need work, but it should give you a rough general idea.
>
Sorry, haven't been following the thread, but why would want normal
users to have write access within /usr/www? Wouldn't it be better to set
apache up to use $HOME/public_html (or whatever you like)? You can even
configure it so you don't need the ~ in the url (e.g. http://mybox/bob
instead of http://mybox/~bob), or if you want, you could probably set it
up to allow http://bob.mybox/. At any rate, allowing generic user write
access to /usr/www doesn't seem like a good idea to me. Just my $0.02.
More information about the fedora-list
mailing list