Lines Matching refs:pwd

263 static	struct	passwd *pwd = NULL;  variable
518 if ((pwd = getpwnam(user_name)) == NULL) { in main()
551 if (pwd->pw_uid == 0) { in main()
576 if (di_devperm_login((const char *)ttyn, pwd->pw_uid, pwd->pw_gid, in main()
595 if (setuid(pwd->pw_uid) == -1) { in main()
610 if (pwd->pw_uid == 0) { in main()
744 if ((pwd = getpwnam(user_name)) != NULL) { in log_bad_attempts()
951 if (((pwd = getpwnam(user_name)) == NULL) && in verify_passwd()
1170 if (pwd == NULL || pwd->pw_uid != 0 || zflag != B_FALSE || in check_for_console()
1602 pwd = &nouser; in process_rlogin()
1608 pwd = getpwnam(lusername); in process_rlogin()
1609 if (pwd == NULL) { in process_rlogin()
1610 pwd = &nouser; in process_rlogin()
1685 audit_success(ADT_passwd, pwd, zone_name); in validate_account()
1712 offset = (long long) pwd->pw_uid * (long long) sizeof (struct lastlog); in check_log()
1735 if (chdir(pwd->pw_dir) < 0) { in chdir_to_dir_user()
1746 remote_host, NMAX, pwd->pw_name); in chdir_to_dir_user()
1750 ttyn, NMAX, pwd->pw_name); in chdir_to_dir_user()
1758 pwd->pw_dir = "/"; in chdir_to_dir_user()
1817 audit_failure(get_audit_id(), ADT_FAIL_PAM + err, pwd, in login_authenticate()
1850 audit_failure(get_audit_id(), ADT_FAIL_VALUE_MAX_TRIES, pwd, in login_authenticate()
1861 if ((pwd = getpwnam(user_name)) != NULL) { in login_authenticate()
1915 if (setgid(pwd->pw_gid) == -1) { in setup_credentials()
1923 (initgroups(user_name, pwd->pw_gid) == -1)) { in setup_credentials()
1940 audit_success(get_audit_id(), pwd, zone_name); in setup_credentials()
1981 if (strncmp("pri=", pwd->pw_gecos, 4) == 0) { in adjust_nice()
1986 if (pwd->pw_gecos[i] == '-') { in adjust_nice()
1991 while (pwd->pw_gecos[i] >= '0' && pwd->pw_gecos[i] <= '9') in adjust_nice()
1992 pri = (pri * 10) + pwd->pw_gecos[i++] - '0'; in adjust_nice()
2121 if (*pwd->pw_shell == '*') { in process_chroot_logins()
2124 if (chroot(pwd->pw_dir) < 0) { in process_chroot_logins()
2129 pwd, remote_host, ttyn, zone_name); in process_chroot_logins()
2139 (void) printf("Subsystem root: %s\n", pwd->pw_dir); in process_chroot_logins()
2212 ENVSTRNCAT(logname, pwd->pw_name); in establish_user_environment()
2255 ENVSTRNCAT(home, pwd->pw_dir); in establish_user_environment()
2269 if (*pwd->pw_shell == '\0') { in establish_user_environment()
2275 pwd->pw_shell = SHELL; in establish_user_environment()
2277 pwd->pw_shell = SHELL2; in establish_user_environment()
2280 ENVSTRNCAT(shell, pwd->pw_shell); in establish_user_environment()
2285 (void) strlcat(mail, pwd->pw_name, sizeof (mail)); in establish_user_environment()
2477 (void) strlcat(minusnam, basename(pwd->pw_shell), in exec_the_shell()
2483 (void) execl(pwd->pw_shell, minusnam, (char *)0); in exec_the_shell()
2496 if (access(pwd->pw_shell, R_OK|X_OK) == 0) { in exec_the_shell()
2497 (void) execl(SHELL, "sh", pwd->pw_shell, (char *)0); in exec_the_shell()
2498 (void) execl(SHELL2, "sh", pwd->pw_shell, (char *)0); in exec_the_shell()
2517 pwd, remote_host, ttyn, zone_name); in login_exit()