There were two calls before - I just moved the call (to fix the problem). Your patch seems to have two calls as well (to a_uid and thus getpwnam) - and seems more complicated. Have I missed something? I will look into rewriting it to use some caching tonight. Mike.