Subject: Re: Running services without root-privileges
To: Benjamin Walkenhorst <Krylon@gmx.net>
From: Ignatios Souvatzis <ignatios@theory.cs.uni-bonn.de>
List: netbsd-users
Date: 11/21/2003 10:28:07
--MGYHOYXEY6WxJCY8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello,

On Fri, Nov 21, 2003 at 09:33:03AM +0100, Benjamin Walkenhorst wrote:

> PostgreSQL's administration guide recommends running postmaster as user
> pgsql.=20
> How do I make this work? Set the suid-bit of the postmaster-binary and ch=
own
> it to pgsql?

If you use postgresql as provided by pkgsrc, all you need to do is to=20
copy /usr/pkg/etc/rc.d/pgsql to /etc/rc.d/pgsql and add=20

pgsql=3DYES

(and maybe an appropriate pgsql_flags line; see the header of the rc.d/pgsql
file) to /etc/rc.conf.

The user will be set - read that script for details.

Regards,
	Ignatios

--MGYHOYXEY6WxJCY8
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: 2.6.i

iQEVAgUBP73apTCn4om+4LhpAQGgsAf9G0ldBLjJ6PSJbfV1Ya6VN/MXD1VLlIT9
Tvhkjroi4TfhXPlbeMcJgDTL2BrMQZsmXn0KmWAg2whGyA78WaotzeuRYR+HT+3R
xSj4hlaL0VBB/cJjTr7ciYuinIFHByi+yEt2PYaioWK8JCps8ziM2JoIg+0pmwiB
qZe9eU9l9+Mdz1J8Wy/ko0xws11V4LKkx5zOPCU2IDZgOwCiLqjheL/bHJno/jyT
2HKOR++yy+96C9dIlXpHkq6oQjHspIryNrvvsZzvyPtQSDWiT+TCEZF4/uEJx++3
9DoUoK+JSoEhlBIFSaqqw7thnP7JpNlK6fSZ4NCe9FjDWEMnvxyTaA==
=TKHs
-----END PGP SIGNATURE-----

--MGYHOYXEY6WxJCY8--