start postmaster as root : problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • stefari@tiscali.it

    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.





    ---------------------------(end of broadcast)---------------------------
    TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddres sHere" to majordomo@postg resql.org)

  • Devrim GUNDUZ

    #2
    Re: start postmaster as root : problem

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


    Hi,

    On Fri, 5 Nov 2004 stefari@tiscali .it wrote:
    [color=blue]
    > 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 ??[/color]

    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.o rg devrim.gunduz~l inux.org.tr


    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.1 (GNU/Linux)

    iD8DBQFBi6G0tl8 6P3SPfQ4RAjhHAJ 4gogrFVCDM3rUrP xYyH6VPWj1sKwCf dqjT
    OdA+UMEjURkQrgB kNyy94SI=
    =SO5W
    -----END PGP SIGNATURE-----

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



    Comment

    • Tom Lane

      #3
      Re: start postmaster as root : problem

      stefari@tiscali .it writes:[color=blue]
      > I have a Linux Distribuction that works only in single user mode as root.[/color]

      That's about as brain dead a setup as I've ever heard of :-(.
      Get a real operating system, not a CP/M emulation.
      [color=blue]
      > The postmaster daemon starts only if I 'm not root user.[/color]

      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?



      Comment

      Working...