Lines Matching refs:user
22 // Copy argv[1] to 'user' so we can truncate it at the period
24 char user[32];
26 strncpy(user, argv[1], sizeof(user));
27 if ((group = strchr(user, ':')) != NULL) {
29 } else if ((group = strchr(user, '.')) != NULL) {
39 pw = getpwnam(user);
44 uid = (int) strtoul(user, &endptr, 0);
45 if (endptr == user) { // no conversion
46 fprintf(stderr, "No such user '%s'\n", user);