tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY:  Repost/Udate: Apache WEB Server
@ 1996-12-30  9:27 Daryl Fallin
  0 siblings, 0 replies; only message in thread
From: Daryl Fallin @ 1996-12-30  9:27 UTC (permalink / raw)
  To: tru64-unix-managers

Thanks to Peter Bivesand for giving me the following method to run Apache=
 as=20
a user other than root.

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D

	Hello.

	Sorry for not answering before, but I've been away on a x-mas break ;)

	The answer to your question about running apache as another user then
	root is:
		1. Add the new user you want the webserver to run as
		   with adduser. A good name could be www or web.

		2. Add a new group for the web-user with addgroup.

		3. Edit <webserver-root>/conf/httpd.conf. It should look=20
		   something like this:
		   User www
		   Group #42

		   User is the username you created and Group #42 is the number
		   on the group you created.

		4. Make sure that the new user is part of the group you=20
		   created. And that the webserver-root is owned by the
		   newly created user and has the right group.

		5. Shutdown and start the server again. I'm not sure if a
		   kill -HUP will change it to the new user.

	You should never ever run a webserver as root. The reason is that if
	someone finds a way of executing programs from remote via a bug or
	cgi-script it will execute as root. Phf is such a cgi-script that can
	be abused to execute programs on your server.

	Good luck!

	Peter Bivesand, System Manager

--=20
************************************************************
Peter R Bivesand, UNIT, Link=F6ping University, SWEDEN
PetBi@UNIT.LiU.SE	Telex: 812 6154 448 SICS
URL:http://www.bive.unit.liu.se/~bive
My public PGP-key can be found at any PGP-key-server.
************************************************************
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Daryl Fallin
dfallin@garfield.leesummit.k12.mo.us

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-12-30  9:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-12-30  9:27 SUMMARY: Repost/Udate: Apache WEB Server Daryl Fallin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox