Lines Matching defs:user
17 * synopsis: atrm [-f] [-i] [-a] [[job #] [user] ...]
43 #define SUPERUSER 0 /* is user super-user? */
47 uid_t user; /* person requesting removal */
54 #define INVALIDUSER "you are not a valid user (no entry in /etc/passwd)"
74 int allflag = 0; /* remove all jobs belonging to user? */
82 * If job number, user name, or "-" is not specified, just print
92 pp = getuser((user = getuid()));
135 * If only certain jobs are to be removed and no job #'s or user
155 * If all jobs belonging to the user are to be removed, compare
156 * the user's id to the owner of the file. If they match, remove
157 * the file. If the user is the super-user, don't bother comparing
163 user == statlist[i]->st_uid)
165 statlist[i], user);
172 * line argument. A check is done to see if it is a user's name or
173 * a job number (inode #). If it's a user's name, compare the argument
208 user)) {
231 fprintf(stderr, "usage: atrm [-f] [-i] [-a] [[job #] [user] ...]\n");
242 * interactively (iflag), prompt the user before we unlink the file. If
243 * the super-user is removing jobs, inform him/her who owns each file before
247 removentry(char *filename, struct stat *statptr, uid_t user)
262 if (user != statptr->st_uid && !cron_admin(login_authchk)) {
373 * Get the full login name of a person using his/her user id.