Lines Matching full:pwd
42 struct passwd *pwd = 0; in login_main() local
73 if ((pwd = getpwnam(username))) { in login_main()
75 if (TT.f || !*pwd->pw_passwd) break; in login_main()
78 if (*(pass = pwd->pw_passwd) == 'x') { in login_main()
106 pwd = 0; in login_main()
110 if (!pwd) error_exit("max retries (3)"); in login_main()
114 if (pwd->pw_uid && !access("/etc/nologin", R_OK)) { in login_main()
123 if (fchown(tty, pwd->pw_uid, pwd->pw_gid) || fchmod(tty, 0600)) in login_main()
125 xsetuser(pwd); in login_main()
126 reset_env(pwd, !FLAG(p)); in login_main()
131 syslog(LOG_INFO, "%s logged in on %s %s %s", pwd->pw_name, in login_main()
135 execl(pwd->pw_shell, xmprintf("-%s", pwd->pw_shell), (char *)0); in login_main()
136 perror_exit("exec shell '%s'", pwd->pw_shell); in login_main()