Lines Matching defs:uid
38 * When shutting down, the Xserver restores it's original uid/gid as
85 uid_t uid;
138 originalUser.uid = geteuid();
153 dmd->user.uid = (uid_t) -1;
452 dmd->user.uid = (uid_t) val;
483 if (chown(auth_file, user->uid, user->gid) < 0)
484 DtloginError("Error in changing owner to %d", user->uid);
515 * Set before the uid value is set.
521 } else if (user->uid != (uid_t) -1) {
522 ppasswd = getpwuid(user->uid);
525 DtloginError("Error in getting user name for %d", user->uid);
543 if (user->uid != (uid_t) -1) {
544 DtloginInfo("Setting uid to %d\n", user->uid);
546 if (setreuid(user->uid, -1) < 0)
547 DtloginError("Error in setting ruid to %d", user->uid);
549 if (setreuid(-1, user->uid) < 0)
550 DtloginError("Error in setting euid to %d", user->uid);
552 /* Wrap closeScreen to allow resetting uid on closedown */
553 if ((user->uid != 0) && (user != &originalUser)) {
571 " for uid reset info",
577 "for uid reset info");