Home
last modified time | relevance | path

Searched refs:pw_shell (Results 1 – 25 of 35) sorted by relevance

12

/dflybsd-src/usr.bin/chpass/
H A Dfield.c213 pw->pw_shell = strdup(_PATH_BSHELL); in p_shell()
217 if (!master_mode && pw->pw_shell && !ok_shell(pw->pw_shell)) { in p_shell()
218 warnx("%s: current shell non-standard", pw->pw_shell); in p_shell()
226 pw->pw_shell = strdup(p); in p_shell()
229 pw->pw_shell = dup_shell(p); in p_shell()
230 if (!pw->pw_shell) { in p_shell()
234 if (stat(pw->pw_shell, &sbuf) < 0) { in p_shell()
237 pw->pw_shell); in p_shell()
239 warn("WARNING: can't stat shell '%s'", pw->pw_shell); in p_shell()
244 pw->pw_shell); in p_shell()
[all …]
H A Dedit.c124 *pw->pw_shell ? pw->pw_shell : _PATH_BSHELL); in display()
128 else if (ok_shell(pw->pw_shell)) in display()
134 else if ((!list[E_SHELL].restricted && ok_shell(pw->pw_shell)) || in display()
142 *pw->pw_shell ? pw->pw_shell : _PATH_BSHELL); in display()
/dflybsd-src/usr.sbin/rpc.yppasswdd/
H A Dyppasswdd_server.c114 EXPAND(yp_password.pw_shell); in copy_yp_pass()
152 if (validchars(npw->pw_shell)) { in validate_master()
198 if (!ok_shell(npw->pw_shell)) { in validate()
199 yp_error("%s is not a valid shell", npw->pw_shell); in validate()
203 if (validchars(npw->pw_shell)) { in validate()
391 pw->pw_shell); in update_inplace()
396 pw->pw_shell); in update_inplace()
548 if (!no_chsh && strcmp(argp->newpw.pw_shell, yp_password.pw_shell)) { in yppasswdproc_update_1_svc()
549 oldshell = yp_password.pw_shell; in yppasswdproc_update_1_svc()
550 yp_password.pw_shell = argp->newpw.pw_shell; in yppasswdproc_update_1_svc()
[all …]
H A Dyppasswd_private.x49 string pw_shell<>; /* default shell */
/dflybsd-src/lib/libutil/
H A Dpw_util.c386 strcmp(pw1->pw_shell, pw2->pw_shell) == 0); in pw_equal()
400 pw->pw_gecos, pw->pw_dir, pw->pw_shell); in pw_make()
414 pw->pw_gecos, pw->pw_dir, pw->pw_shell); in pw_make_v7()
605 if (pw->pw_shell != NULL) in pw_dup()
606 len += strlen(pw->pw_shell) + 1; in pw_dup()
631 if (pw->pw_shell != NULL) { in pw_dup()
632 npw->pw_shell = dst; in pw_dup()
633 dst = stpcpy(npw->pw_shell, pw->pw_shell) + 1; in pw_dup()
/dflybsd-src/usr.sbin/nscd/agents/
H A Dpasswd.c62 if (pwd->pw_shell != NULL) in passwd_marshal_func()
63 desired_size += strlen(pwd->pw_shell) + 1; in passwd_marshal_func()
113 if (new_pwd.pw_shell != NULL) { in passwd_marshal_func()
114 size = strlen(new_pwd.pw_shell); in passwd_marshal_func()
115 memcpy(p, new_pwd.pw_shell, size); in passwd_marshal_func()
116 new_pwd.pw_shell = p; in passwd_marshal_func()
/dflybsd-src/usr.bin/login/
H A Dlogin.c414 shell = login_getcapstr(lc, "shell", pwd->pw_shell, pwd->pw_shell); in main()
415 if (*pwd->pw_shell == '\0') in main()
416 pwd->pw_shell = strdup(_PATH_BSHELL); in main()
417 if (pwd->pw_shell == NULL) { in main()
422 shell = pwd->pw_shell; in main()
571 if (setenv("SHELL", pwd->pw_shell, 1) == -1) in main()
572 err(1, "setenv: cannot set SHELL=%s", pwd->pw_shell); in main()
638 p = strrchr(pwd->pw_shell, '/'); in main()
639 if (asprintf(&arg0, "-%s", p ? p + 1 : pwd->pw_shell) >= MAXPATHLEN) { in main()
/dflybsd-src/lib/libypclnt/
H A Dypclnt_passwd.c160 (yppwd.newpw.pw_shell = strdup(pwd->pw_shell)) == NULL) { in yppasswd_local()
228 free(yppwd.newpw.pw_shell); in yppasswd_local()
252 (yppwd.newpw.pw_shell = strdup(pwd->pw_shell)) == NULL || in yppasswd_remote()
307 free(yppwd.newpw.pw_shell); in yppasswd_remote()
/dflybsd-src/usr.bin/su/
H A Dsu.c265 if (pwd->pw_shell != NULL && *pwd->pw_shell != '\0') { in main()
267 shell = strncpy(shellbuf, pwd->pw_shell, in main()
370 if (ruid != 0 && !chshell(pwd->pw_shell)) in main()
373 else if (pwd->pw_shell && *pwd->pw_shell) { in main()
374 shell = pwd->pw_shell; in main()
/dflybsd-src/lib/libc/gen/
H A Dgetpwent.c297 if (pwd->pw_shell != NULL) in pwd_marshal_func()
298 desired_size += strlen(pwd->pw_shell) + 1; in pwd_marshal_func()
348 if (new_pwd.pw_shell != NULL) { in pwd_marshal_func()
349 size = strlen(new_pwd.pw_shell); in pwd_marshal_func()
350 memcpy(p, new_pwd.pw_shell, size); in pwd_marshal_func()
351 new_pwd.pw_shell = p; in pwd_marshal_func()
407 NS_APPLY_OFFSET(pwd->pw_shell, orig_buf, p, char *); in pwd_unmarshal_func()
629 pwd->pw_shell = nul; in pwd_init()
994 STRING(pwd->pw_shell); in pwdb_parse_entry_v3()
1066 STRING(pwd->pw_shell); in pwdb_parse_entry_v4()
[all …]
H A Dpw_scan.c143 if (!(pw->pw_shell = strsep(&bp, ":"))) /* shell */ in __pw_scan()
146 p = pw->pw_shell; in __pw_scan()
/dflybsd-src/lib/libc/net/
H A Drcmdsh.c146 if (pw->pw_shell[0] == '\0') in rcmdsh()
149 rshprog = pw->pw_shell; in rcmdsh()
/dflybsd-src/usr.sbin/pw/
H A Dpwupd.c118 pwd->pw_dir, pwd->pw_shell); in fmtpwentry()
125 pwd->pw_gecos, pwd->pw_dir, pwd->pw_shell); in fmtpwentry()
H A Dpw_vpw.c130 pwd.pw_shell = p; in vnextpwent()
145 CKNULL(pwd.pw_shell); in vnextpwent()
H A Dpw_user.c519 if (strcmp(shell, pwd->pw_shell) != 0) { in pw_user()
520 pwd->pw_shell = shell; in pw_user()
580 pwd->pw_shell = pw_shellpolicy(cnf, args, NULL); in pw_user()
736 pwd->pw_gecos, pwd->pw_dir, pwd->pw_shell); in pw_user()
1132 pwd->pw_shell, office, wphone, hphone, in print_user()
/dflybsd-src/usr.sbin/jail/
H A Djail.c157 if (*pwd->pw_shell) in main()
158 shell = pwd->pw_shell; in main()
/dflybsd-src/usr.sbin/pwd_mkdb/
H A Dpwd_mkdb.c371 COMPACT(pwd.pw_shell); in main()
386 COMPACT(pwd.pw_shell); in main()
462 COMPACT(pwd.pw_shell); in main()
477 COMPACT(pwd.pw_shell); in main()
557 pwd.pw_gecos, pwd.pw_dir, pwd.pw_shell) < 0) in main()
/dflybsd-src/sbin/svc/
H A Dsvc.c143 sfree(&cmd->pwent.pw_shell); in process_cmd()
150 sdup(&cmd->pwent.pw_shell); in process_cmd()
441 sfree(&cmd->pwent.pw_shell); in free_cmd()
/dflybsd-src/usr.bin/newgrp/
H A Dnewgrp.c261 shell = pwd->pw_shell; in loginshell()
310 shell = pwd->pw_shell; in doshell()
/dflybsd-src/include/rpcsvc/
H A Dyppasswd.x57 string pw_shell<>; /* default shell */
/dflybsd-src/contrib/pam_passwdqc/
H A Dpasswdqc.h25 char *pw_shell; member
/dflybsd-src/include/
H A Dpwd.h121 char *pw_shell; /* default shell */ member
/dflybsd-src/crypto/openssh/
H A Dauth.c122 char *shell = xstrdup((pw->pw_shell[0] == '\0') ? in allowed_user()
123 _PATH_BSHELL : pw->pw_shell); /* empty = /bin/sh */ in allowed_user()
633 fake.pw_shell = "/nonexist"; in fakepw()
/dflybsd-src/usr.sbin/authpf/
H A Dauthpf.c140 shell = login_getcapstr(lc, "shell", pw->pw_shell, in main()
141 pw->pw_shell); in main()
143 shell = pw->pw_shell; in main()
/dflybsd-src/usr.sbin/cron/doc/
H A DTHANKS29 -> null pw_shell is dealt with now; default is /bin/sh

12