Lines Matching refs:pw
59 p_login(char *p, struct passwd *pw, ENTRY *ep __unused)
69 if (!(pw->pw_name = strdup(p))) {
85 p_passwd(char *p, struct passwd *pw, ENTRY *ep __unused)
87 if (!(pw->pw_passwd = strdup(p))) {
97 p_uid(char *p, struct passwd *pw, ENTRY *ep __unused)
116 pw->pw_uid = id;
122 p_gid(char *p, struct passwd *pw, ENTRY *ep __unused)
137 pw->pw_gid = gr->gr_gid;
146 pw->pw_gid = id;
152 p_class(char *p, struct passwd *pw, ENTRY *ep __unused)
154 if (!(pw->pw_class = strdup(p))) {
164 p_change(char *p, struct passwd *pw, ENTRY *ep __unused)
166 if (!atot(p, &pw->pw_change))
174 p_expire(char *p, struct passwd *pw, ENTRY *ep __unused)
176 if (!atot(p, &pw->pw_expire))
184 p_gecos(char *p, struct passwd *pw __unused, ENTRY *ep)
195 p_hdir(char *p, struct passwd *pw, ENTRY *ep __unused)
201 if (!(pw->pw_dir = strdup(p))) {
210 p_shell(char *p, struct passwd *pw, ENTRY *ep __unused)
215 pw->pw_shell = strdup(_PATH_BSHELL);
219 if (!master_mode && pw->pw_shell && !ok_shell(pw->pw_shell)) {
220 warnx("%s: current shell non-standard", pw->pw_shell);
228 pw->pw_shell = strdup(p);
231 pw->pw_shell = dup_shell(p);
232 if (!pw->pw_shell) {
236 if (stat(pw->pw_shell, &sbuf) < 0) {
239 pw->pw_shell);
241 warn("WARNING: can't stat shell '%s'", pw->pw_shell);
246 pw->pw_shell);
250 warnx("WARNING: shell '%s' is not executable", pw->pw_shell);