dbTalk Databases Forums  

start postmaster as root : problem

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss start postmaster as root : problem in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
stefari@tiscali.it
 
Posts: n/a

Default start postmaster as root : problem - 11-05-2004 , 09:38 AM






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 majordomo (AT) postgresql (DOT) org)


Reply With Quote
  #2  
Old   
Devrim GUNDUZ
 
Posts: n/a

Default Re: start postmaster as root : problem - 11-05-2004 , 09:52 AM






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


Hi,

On Fri, 5 Nov 2004 stefari (AT) tiscali (DOT) it wrote:

Quote:
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



Reply With Quote
  #3  
Old   
Tom Lane
 
Posts: n/a

Default Re: start postmaster as root : problem - 11-05-2004 , 10:19 AM



stefari (AT) tiscali (DOT) it writes:
Quote:
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.

Quote:
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



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.