Lines Matching defs:user
65 #define ROOT 0 /* user-id of super-user */
76 #define CANTCHUID "can't change user identifier"
78 #define INVALIDUSER "you are not a valid user (no entry in /etc/passwd)"
131 uid_t user;
179 user = getuid();
180 login = getuser(user);
220 gettext("at: user %s is "
239 gettext("at: user %s is "
371 if (chown(tfname, user, getgid()) == -1) {
382 * Open the input file with the user's permissions.
385 if ((seteuid(user) < 0) ||
588 char *user;
604 * Determine what shell we should use to run the job. If the user
636 * Check if current user is a member of current project.
638 * later when the job gets executed. If current user does
639 * not belong to current project, user's default project
643 if ((user = getuser(getuid())) == NULL)
648 if (inproj(user, pprj->pj_name, pbuf2, sizeof (pbuf2)))
681 * Must obtain current working directory as the user
748 pw = getpwuid(user);
750 atabort("Invalid user.\n");
764 } else if ((user != buf.st_uid) &&
806 pwd = getpwuid_r(user, &pwds, buf_pwd, sizeof (buf_pwd));
808 atabort("Invalid user.\n");
811 /* list jobs for user */
821 /* list all jobs for a user */
842 (buf.st_uid != user))
856 printf("user = %s\t%s\t%s\n",
866 } else /* list particular jobs for user */
879 } else if ((user != buf.st_uid) &&