Lines Matching defs:user
40 * sulogin - special login program exec'd from init to let user
41 * come up single user, or go to default init state straight away.
43 * Explain the scoop to the user, prompt for an authorized user
45 * is correct, check if the user is authorized, if so enter
46 * single user. ^D exits sulogin, and init will go to default init state.
49 * go single user, no questions asked.
260 * user shell prompt
271 * user shell prompt
452 char *user = NULL; /* authorized user */
453 char *pass; /* password from user */
499 (void) printf("\nEnter user name for system "
501 user = sulogin_getinput(devname, ECHOON);
502 if (user == NULL) {
508 } while (user[0] == '\0');
510 user);
516 free(user);
519 lshpw = getspnam_r(user, &spwd, shadow, sizeof (shadow));
522 * the user entered doesn't exist, too bad.
540 * authentication and just verify that the user is
564 (chkauthattr(MAINTENANCE_AUTH, user) != 1)) {
567 (void) fprintf(sysmsgfd, "\nsingle-user privilege "
568 "assigned to %s on %s.\n", user, devname);
571 free(user);
577 (void) printf("\nLogin incorrect or user %s not authorized\n",
578 user);
579 free(user);
586 * single() - exec shell for single user mode
749 * from the auxiliary console and is getting the single-user shell.