By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,809 Members | 1,999 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,809 IT Pros & Developers. It's quick & easy.

start postmaster as root : problem

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
-----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

P: n/a
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.