+#ifdef FORCE_USERID
+
+ /* we'd rather not run as root */
+
+ if(geteuid() == 0) {
+ if(client_uid == (uid_t) -1) {
+ error("error [cannot find user %s in passwd file]\n", CLIENT_LOGIN);
+ /*NOTREACHED*/
+ }
+
+ /*@ignore@*/
+ initgroups(CLIENT_LOGIN, client_gid);
+ /*@end@*/
+ setgid(client_gid);
+ setuid(client_uid);
+ }
+
+#endif /* FORCE_USERID */
+