So if I understand you correctly, you want sudo to look up the effective uid in the passwd file instead of the real uid when determining who is running it? There's no configuration knob to do that but all you should need to do is to edit sudo.c and change the 3 occurrences of getuid() to geteuid(). - todd