[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

adding new users for web stuff



I'm packaging twiki (mostly done, in fact.)  It includes an initial
chunk of data which is supposed to be writable to the twiki cgi (the
whole point of twiki is to let users edit a community pageset.)

Currently I drop the initial data into a tar.gz file, and with a
positive answer to a debconf question [and no prexisting files],
unpack it in the location twiki expects.  However, to get this right,
I need to
	1) create a user at install time
	2) arrange for the cgi to run as that user (suexec?)

Is there a good example of a package that already does this right?
User creation in preinst (if it doesn't already exist - a quick check
found at least 3 different ways that packages do this, but isn't just
running adduser good enough?), and I couldn't find any examples of
suexec configury...

I can cook something up, but this is sufficiently security related
that I'd be much happier starting with something that has survived for
a bit (and fixing *both* of them if I have to :-)

			_Mark_ <eichin@thok.org>
			The Herd of Kittens
			Debian Package Maintainer



Reply to: