first attempt at making unix setuid/setgid code that is independent of