Could not drop root uid

Sam Trenholme strenholme.usenet at gmail.com
Tue May 18 12:22:52 EDT 2010


> Fatal error: Could not drop root uid
>
> After that maradns is closed.

Are you sure you don’t get a second line explaining *why* setuid() failed?

The relevant code called is this:

        if(setuid(uid) != 0)
            sys_harderror(L_NODROP); /* "Could not drop root uid" */

And sys_harderror does this:

void sys_harderror(char *why) {
    printf("%s%s%s",L_FATAL,why,L_N); /* "Fatal Error: ", why, "\n" */
    printf("%s: %s%s",L_SYSERROR,strerror(errno),L_N);
    /* This outputs to stderr, which duende can not catch (I gave up
       trying to catch stderr messages after trying for two days) */
    /*perror(L_SYSERROR);*/ /* "System said: " */

    /* Unbuffered output */
    fflush(stdout);

    exit(3);
    }

So I’m really surprised you’re not seeing a second line with a colon (:) in it.

- Sam

Note: I do not answer MaraDNS (including Deadwood) support requests
sent by private email without being compensated for my time. A MaraDNS
support request is any and all discussion you may wish to have about
MaraDNS in private email; if you want to email me to talk about
MaraDNS then, yes, that is a support request. I will discuss rates if
you want this kind of support. Thank you for your understanding.

MaraDNS security vulnerability reports, however, will be dealt with
without charge and kept confidential. If you don't know what Bugtraq
is, then, no, your email is not a security report. It is not a
security report unless you've done due diligence to determine how the
security bug you think you found can reasonably be exploited.


More information about the list mailing list