/dflybsd-src/usr.bin/chpass/ |
H A D | field.c | 213 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 D | edit.c | 124 *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 D | yppasswdd_server.c | 114 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 D | yppasswd_private.x | 49 string pw_shell<>; /* default shell */
|
/dflybsd-src/lib/libutil/ |
H A D | pw_util.c | 386 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 D | passwd.c | 62 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 D | login.c | 414 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 D | ypclnt_passwd.c | 160 (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 D | su.c | 265 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 D | getpwent.c | 297 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 D | pw_scan.c | 143 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 D | rcmdsh.c | 146 if (pw->pw_shell[0] == '\0') in rcmdsh() 149 rshprog = pw->pw_shell; in rcmdsh()
|
/dflybsd-src/usr.sbin/pw/ |
H A D | pwupd.c | 118 pwd->pw_dir, pwd->pw_shell); in fmtpwentry() 125 pwd->pw_gecos, pwd->pw_dir, pwd->pw_shell); in fmtpwentry()
|
H A D | pw_vpw.c | 130 pwd.pw_shell = p; in vnextpwent() 145 CKNULL(pwd.pw_shell); in vnextpwent()
|
H A D | pw_user.c | 519 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 D | jail.c | 157 if (*pwd->pw_shell) in main() 158 shell = pwd->pw_shell; in main()
|
/dflybsd-src/usr.sbin/pwd_mkdb/ |
H A D | pwd_mkdb.c | 371 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 D | svc.c | 143 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 D | newgrp.c | 261 shell = pwd->pw_shell; in loginshell() 310 shell = pwd->pw_shell; in doshell()
|
/dflybsd-src/include/rpcsvc/ |
H A D | yppasswd.x | 57 string pw_shell<>; /* default shell */
|
/dflybsd-src/contrib/pam_passwdqc/ |
H A D | passwdqc.h | 25 char *pw_shell; member
|
/dflybsd-src/include/ |
H A D | pwd.h | 121 char *pw_shell; /* default shell */ member
|
/dflybsd-src/crypto/openssh/ |
H A D | auth.c | 122 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 D | authpf.c | 140 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 D | THANKS | 29 -> null pw_shell is dealt with now; default is /bin/sh
|