| /freebsd-14.2/usr.bin/chpass/ |
| H A D | field.c | 222 pw->pw_shell = strdup(_PATH_BSHELL); in p_shell() 226 if (!master_mode && pw->pw_shell && !ok_shell(pw->pw_shell)) { in p_shell() 227 warnx("%s: current shell non-standard", pw->pw_shell); in p_shell() 235 pw->pw_shell = strdup(p); in p_shell() 238 pw->pw_shell = dup_shell(p); in p_shell() 239 if (!pw->pw_shell) { in p_shell() 243 if (stat(pw->pw_shell, &sbuf) < 0) { in p_shell() 246 pw->pw_shell); in p_shell() 248 warn("WARNING: can't stat shell '%s'", pw->pw_shell); in p_shell() 253 pw->pw_shell); in p_shell() [all …]
|
| H A D | edit.c | 134 *pw->pw_shell ? pw->pw_shell : _PATH_BSHELL); in display() 138 else if (ok_shell(pw->pw_shell)) in display() 144 else if ((!list[E_SHELL].restricted && ok_shell(pw->pw_shell)) || in display() 152 *pw->pw_shell ? pw->pw_shell : _PATH_BSHELL); in display()
|
| /freebsd-14.2/usr.sbin/rpc.yppasswdd/ |
| H A D | yppasswdd_server.c | 83 pwd->pw_shell = xpwd->pw_shell; in xlate_passwd() 134 EXPAND(yp_password.pw_shell); in copy_yp_pass() 170 if (validchars(npw->pw_shell)) { in validate_master() 216 if (!no_chsh && !ok_shell(npw->pw_shell)) { in validate() 221 if (!no_chsh && validchars(npw->pw_shell)) { in validate() 414 pw->pw_shell); in update_inplace() 420 pw->pw_shell); in update_inplace() 581 if (!no_chsh && strcmp(argp->newpw.pw_shell, yp_password.pw_shell)) { in yppasswdproc_update_1_svc() 582 oldshell = yp_password.pw_shell; in yppasswdproc_update_1_svc() 583 yp_password.pw_shell = argp->newpw.pw_shell; in yppasswdproc_update_1_svc() [all …]
|
| H A D | yppasswd_private.x | 50 string pw_shell<>; /* default shell */
|
| /freebsd-14.2/lib/libc/tests/nss/ |
| H A D | getpw_test.c | 95 if (src->pw_shell != NULL) in IMPLEMENT_TEST_FILE_SNAPSHOT() 96 dest->pw_shell = strdup(dest->pw_shell); in IMPLEMENT_TEST_FILE_SNAPSHOT() 118 strcmp(pwd1->pw_shell, pwd2->pw_shell) != 0) in compare_passwd() 132 free(pwd->pw_shell); in free_passwd() 141 pwd->pw_dir, pwd->pw_shell, (uintmax_t)pwd->pw_expire, in sdump_passwd() 209 pwd->pw_shell = strdup(s); in passwd_read_snapshot_func() 210 ATF_REQUIRE(pwd->pw_shell != NULL); in passwd_read_snapshot_func() 286 if (pwd->pw_shell == NULL) in passwd_test_correctness()
|
| /freebsd-14.2/usr.sbin/nscd/agents/ |
| H A D | passwd.c | 64 if (pwd->pw_shell != NULL) in passwd_marshal_func() 65 desired_size += strlen(pwd->pw_shell) + 1; in passwd_marshal_func() 115 if (new_pwd.pw_shell != NULL) { in passwd_marshal_func() 116 size = strlen(new_pwd.pw_shell); in passwd_marshal_func() 117 memcpy(p, new_pwd.pw_shell, size); in passwd_marshal_func() 118 new_pwd.pw_shell = p; in passwd_marshal_func()
|
| /freebsd-14.2/lib/libutil/ |
| H A D | pw_util.c | 391 strcmp(pw1->pw_shell, pw2->pw_shell) == 0); in pw_equal() 405 pw->pw_gecos, pw->pw_dir, pw->pw_shell); in pw_make() 419 pw->pw_gecos, pw->pw_dir, pw->pw_shell); in pw_make_v7() 621 if (pw->pw_shell != NULL) in pw_dup() 622 len += strlen(pw->pw_shell) + 1; in pw_dup() 647 if (pw->pw_shell != NULL) { in pw_dup() 648 npw->pw_shell = dst; in pw_dup() 649 dst = stpcpy(npw->pw_shell, pw->pw_shell) + 1; in pw_dup()
|
| /freebsd-14.2/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()
|
| /freebsd-14.2/lib/nss_tacplus/ |
| H A D | nss_tacplus.c | 218 pwd->pw_shell = tacplus_copystr(value, &buffer, in tacplus_getpwnam_r() 220 if (pwd->pw_shell == NULL) { in tacplus_getpwnam_r() 243 if (pwd->pw_shell == NULL) in tacplus_getpwnam_r() 244 pwd->pw_shell = tacplus_copystr(DEF_SHELL, &buffer, &bufsize); in tacplus_getpwnam_r() 245 if (pwd->pw_shell == NULL) in tacplus_getpwnam_r()
|
| /freebsd-14.2/usr.bin/login/ |
| H A D | login.c | 451 shell = login_getcapstr(lc, "shell", pwd->pw_shell, pwd->pw_shell); in main() 452 if (*pwd->pw_shell == '\0') in main() 453 pwd->pw_shell = strdup(_PATH_BSHELL); in main() 454 if (pwd->pw_shell == NULL) { in main() 459 shell = pwd->pw_shell; in main() 604 (void)setenv("SHELL", pwd->pw_shell, 1); in main() 658 p = strrchr(pwd->pw_shell, '/'); in main() 659 if (asprintf(&arg0, "-%s", p ? p + 1 : pwd->pw_shell) >= MAXPATHLEN) { in main()
|
| /freebsd-14.2/usr.bin/su/ |
| H A D | su.c | 276 if (pwd->pw_shell != NULL && *pwd->pw_shell != '\0') { in main() 278 strlcpy(shellbuf, pwd->pw_shell, in main() 383 if (ruid != 0 && !chshell(pwd->pw_shell)) in main() 386 else if (pwd->pw_shell && *pwd->pw_shell) { in main() 387 shell = pwd->pw_shell; in main()
|
| /freebsd-14.2/crypto/heimdal/appl/su/ |
| H A D | su.c | 115 free (p->pw_shell); in free_info() 132 info->pw_shell = strdup(pwd->pw_shell); in dup_info() 134 info->pw_dir == NULL || info->pw_shell == NULL) { in dup_info() 384 shell = login_info->pw_shell; in main() 386 shell = su_info->pw_shell; in main()
|
| /freebsd-14.2/lib/libc/gen/ |
| H A D | pw_scan.c | 79 pwd->pw_shell = nul; in __pw_initpwd() 198 if (!(pw->pw_shell = strsep(&bp, ":"))) /* shell */ in __pw_scan() 201 p = pw->pw_shell; in __pw_scan()
|
| H A D | getpwent.c | 295 if (pwd->pw_shell != NULL) in pwd_marshal_func() 346 if (new_pwd.pw_shell != NULL) { in pwd_marshal_func() 347 size = strlen(new_pwd.pw_shell); in pwd_marshal_func() 349 new_pwd.pw_shell = p; in pwd_marshal_func() 984 STRING(pwd->pw_shell); in pwdb_parse_entry_v3() 1056 STRING(pwd->pw_shell); in pwdb_parse_entry_v4() 1428 free(template->pw_shell); in compat_clear_template() 1454 (template->pw_shell = strdup(src->pw_shell)) == NULL) in compat_set_template() 1483 n += pwd->pw_shell != NULL ? strlen(pwd->pw_shell) + 1 : 0; in compat_use_template() 1504 COPY(pw_shell); in compat_use_template() [all …]
|
| /freebsd-14.2/usr.bin/logins/ |
| H A D | logins.c | 50 char *pw_shell; member 221 pwds[npwds].pw_shell = xstrdup(pwd->pw_shell); in get_users() 313 printf(o_flag ? "%s:%s" : "%24s%s\n", "", pwd->pw_shell); in display_user()
|
| /freebsd-14.2/lib/libc/net/ |
| H A D | rcmdsh.c | 143 if (pw->pw_shell[0] == '\0') in rcmdsh() 146 rshprog = pw->pw_shell; in rcmdsh()
|
| /freebsd-14.2/usr.sbin/jexec/ |
| H A D | jexec.c | 131 *pwd->pw_shell ? pwd->pw_shell : _PATH_BSHELL, 1); in main()
|
| /freebsd-14.2/contrib/llvm-project/lldb/source/Host/posix/ |
| H A D | HostInfoPosix.cpp | 77 return PasswdEntry{user_info_ptr->pw_name, user_info_ptr->pw_shell}; in GetPassword() 86 return PasswdEntry{user_info_ptr->pw_name, user_info_ptr->pw_shell}; in GetPassword()
|
| /freebsd-14.2/include/rpcsvc/ |
| H A D | yppasswd.x | 63 string pw_shell<>; /* default shell */
|
| /freebsd-14.2/crypto/heimdal/appl/rsh/ |
| H A D | rshd.c | 581 if (asprintf (&e[i++], "SHELL=%s", pwd->pw_shell) == -1) in setup_environment() 714 if (*pwd->pw_shell == '\0') in doit() 715 pwd->pw_shell = _PATH_BSHELL; in doit() 838 execle (pwd->pw_shell, pwd->pw_shell, "-c", cmd, NULL, env); in doit() 839 err(1, "exec %s", pwd->pw_shell); in doit()
|
| /freebsd-14.2/contrib/pf/authpf/ |
| H A D | authpf.c | 151 shell = login_getcapstr(lc, "shell", pw->pw_shell, in main() 152 pw->pw_shell); in main() 154 shell = pw->pw_shell; in main() 167 if (shell != pw->pw_shell) in main() 176 if (shell != pw->pw_shell) in main()
|
| /freebsd-14.2/lib/libcasper/services/cap_pwd/tests/ |
| H A D | pwd_test.c | 134 if (pwd0->pw_shell != NULL || pwd1->pw_shell != NULL) { in passwd_compare() 135 if (pwd0->pw_shell == NULL || pwd1->pw_shell == NULL) in passwd_compare() 137 if (strcmp(pwd0->pw_shell, pwd1->pw_shell) != 0) in passwd_compare() 939 if (pwd->pw_shell != NULL && pwd->pw_shell[0] != '\0') in passwd_fields()
|
| /freebsd-14.2/usr.bin/newgrp/ |
| H A D | newgrp.c | 264 shell = pwd->pw_shell; in loginshell() 305 shell = pwd->pw_shell; in doshell()
|
| /freebsd-14.2/include/ |
| H A D | pwd.h | 122 char *pw_shell; /* default shell */ member
|
| /freebsd-14.2/contrib/openpam/bin/su/ |
| H A D | su.c | 146 *args = pwd->pw_shell; in main()
|