Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Run postgresql as root, make an interface for the filesystem, hook up to a Django ORM and you have a webpage with the power of bash? (yes, bad idea on so many levels but still, potential is .... staggering.)


Postgres can't be run as root. From src/backend/main.c:

    if (geteuid() == 0)
    {
        write_stderr("\"root\" execution of the PostgreSQL server is not permitted.\n"
                     "The server must be started under an unprivileged user ID to prevent\n"
          "possible system security compromise.  See the documentation for\n"
                  "more information on how to properly start the server.\n");
        exit(1);
    }


Comment it out, for science!




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: