471,049 Members | 1,407 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,049 software developers and data experts.

start postmaster as root : problem

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/


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to ma*******@postgresql.org)

Nov 23 '05 #1
2 3777
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,

On Fri, 5 Nov 2004 st*****@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)

iD8DBQFBi6G0tl86P3SPfQ4RAjhHAJ4gogrFVCDM3rUrPxYyH6 VPWj1sKwCfdqjT
OdA+UMEjURkQrgBkNyy94SI=
=SO5W
-----END PGP SIGNATURE-----

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

Nov 23 '05 #2
st*****@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

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Mark Adams | last post: by
12 posts views Thread by Sander Smeenk | last post: by
reply views Thread by Kaushik Roy | last post: by
7 posts views Thread by Thomas F.O'Connell | last post: by
1 post views Thread by Alexander Cohen | last post: by
3 posts views Thread by Josh Close | last post: by
1 post views Thread by Stefano Farina | last post: by
4 posts views Thread by Madhu | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.