I think I must be missing something. Jabber doesn't use any low numbered ports, so why do you need to change the uid after you start it? You can start the server as an unprivileged account and bypass the whole "changing UIDs" thing.