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?"