Forum OpenACS Q&A: aolserver 3.3.1 ignoring -g when -u specified

I couldn't figure out why I couldn't tell nsd to run as group web -- no matter what I did, it ran with group nsadmin. So I took a look at the code:
    if (garg != NULL) {
        gid = Ns_GetGid(garg);
        if (gid < 0) {
            gid = atoi(garg);
            if (gid == 0) {
                Ns_Fatal("nsmain: invalid group '%s'", garg);
            }
        }
    }
    if (uarg != NULL) {
        uid = Ns_GetUid(uarg);
        gid = Ns_GetUserGid(uarg);
        if (uid < 0) {
            uid = atoi(uarg);
        }
        if (uid == 0) {
            Ns_Fatal("nsmain: invalid user '%s'", uarg);
        }
    }
In other words, if -u is specified, it will run as that user's default group, and ignore -g. "Feature?"
Collapse
Posted by Jon Griffin on
I patched this a long time ago. The patch is on both the openacs site, jongriffin.com and aolserver.

BTW, why not use 3.5 it is already patched and 3.3.1 has some other problems.

Collapse
Posted by David Walker on
3.5 has a file upload problem.  I don't know of any other issues
with it though.