Lines Matching defs:user
92 char *user, *p;
134 user = p;
139 user = p;
171 switch(*user) {
173 if (!*(user+1)) { /* '+' matches all users */
177 if (*(user+1) == '@') /* match a user by netgroup */
178 userok = innetgr(user+2, NULL, (char *)ruser,
180 else /* match a user by direct specification */
181 userok = !(strcmp(ruser, user+1));
184 if (hostok) { /* check for user field rejections */
185 if (!*(user+1))
187 if (*(user+1) == '@') {
188 if (innetgr(user+2, NULL,
192 if (!strcmp(ruser, user+1))
197 default: /* no rejections: try to match the user */
199 userok = !(strcmp(ruser,*user ? user : luser));
259 * user or root or if writeable by anyone but the owner, quit.