Re: multiple users on one install

Wari Wahab <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
Aaron Held wrote:

> I was playing around with different ideas for hosting multiple users 
> on a single pybloxsom install and came up with this sort of idea:
> [snip]
> This way each user can have a blogData directory in thier own home dir.

Whoah, that's a pretty cool idea IMO :) Dynamic configs, you rule!

> I am trying to figure out a way to use suExec make the cgi's run as a 
> different user based on the url, but so far the best I have come up 
> with is a rewrite to ~aheld/blog, but I would rather just keep one 
> instance of pybloxsom like:
> RewriteRule "^blog(.*)$" http://www.metrony.com/cgi-bin/pybloxsom.cgi$1
> any ideas out there????

First, to allow suExec to do the trickery you want really requires 
hacking up mod_suexec.c which I really don't think you'd like, it's 
possible, just not available in the default suExec code, also, you have 
to remove some of the suExec's anal checks, which will probably open up 
a security hole somewhere.

Another way you could do is to run a wrapper type program that is runned 
suid root, but this means opening up a potential security hole, though 
it could be a better solution, as you can control what program you can run.

Anyway, there are guys out there running a multiuser pyblosxom blog, and 
one notable example is http://zork.net/motd/ where there's a few users 
running the blog. But this is made simple because there only one domain, 
and the url scheme is http://host/motd/username, and the run an editor 
called motd which will choose the proper directory in /var/www/username. 
The admin made sure that no one can edit other people's blog which 
permissions. I guess if you need data dump or cache facilities, you'd 
have a globally writable directory for stuff like comments and what nots 
(dynamically configurable of course :) )

Anyway, I don't really have answers for you :(



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.