Re: start postmaster as root : problem

From: Devrim GUNDUZ <devrim(at)gunduz(dot)org>
To: stefari(at)tiscali(dot)it
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: start postmaster as root : problem
Date: 2004-11-05 15:52:11
Message-ID: Pine.LNX.4.61.0411051750220.3977@emo.org.tr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

On Fri, 5 Nov 2004 stefari(at)tiscali(dot)it wrote:

> I have to develop an embedded database with PostgreSQL.
> I have a Linux Distribuction that works only in single user mode as root.
>
> The postmaster daemon starts only if I 'm not root user.
>
> Do you have a solution for this problem ??

AFAIK, It's backend/main/main.c that checks the username with geteuid().
If you disable it and re-compile the file, postmaster will not check the
username.

Regards,
- --
Devrim GUNDUZ
devrim~gunduz.org devrim.gunduz~linux.org.tr
http://www.tdmsoft.com
http://www.gunduz.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFBi6G0tl86P3SPfQ4RAjhHAJ4gogrFVCDM3rUrPxYyH6VPWj1sKwCfdqjT
OdA+UMEjURkQrgBkNyy94SI=
=SO5W
-----END PGP SIGNATURE-----

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2004-11-05 16:04:00 Re: VACUUM failing ??!!
Previous Message Tom Lane 2004-11-05 15:39:32 Re: Comment on timezone and interval types