start postmaster as root : problem

Started by Nonameover 21 years ago3 messagesgeneral
Jump to latest
#1Noname
stefari@tiscali.it

Hi all,

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 ??

Thanks.

__________________________________________________________________
Tiscali Adsl 2 Mega Free: naviga gratis tutto l'anno!
Supera tutti i limiti di velocita' con Tiscali Adsl 2 Mega Free.
Sei libero da costi fissi e, se ti abboni entro l'8 novembre,
navighi gratis tutto l'anno.
http://abbonati.tiscali.it/adsl/

#2Devrim GÜNDÜZ
devrim@gunduz.org
In reply to: Noname (#1)
Re: start postmaster as root : problem

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

Hi,

On Fri, 5 Nov 2004 stefari@tiscali.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-----

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Noname (#1)
Re: start postmaster as root : problem

stefari@tiscali.it writes:

I have a Linux Distribuction that works only in single user mode as root.

That's about as brain dead a setup as I've ever heard of :-(.
Get a real operating system, not a CP/M emulation.

The postmaster daemon starts only if I 'm not root user.

That's an intentional security measure. You could defeat it by altering
the source code but we do not recommend doing so.

regards, tom lane