Hylafax Mailing List Archives

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: hfaxd: Cannot set privileges



Ekkehard Burkon wrote:
    What's wrong, when hfaxd tells me:
    
    Cannot set privileges?

The answer is simple:

hfaxd/Login.c++:
    ....
    fxBool isSetup = (chroot(".") >= 0 && chdir("/") >= 0);
    /*
     * Install the client's fax-uid as the effective gid
     * so that created files automatically are given the
     * correct ``ownership'' (we store the owner's fax-uid
     * in the group-id field of the inode).
     */
    if (isSetup)
        (void) setegid(uid);
    (void) seteuid(ouid);
    if (!isSetup) {
        reply(550, "Cannot set privileges.");
        end_login();
        return;
    }
    ....

Check why hfaxd(1M) can't do the chroot(2) or the chdir(2) call
in your file system.

	matthias



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services