/freebsd/usr.bin/chpass/ |
H A D | field.c | 215 pw->pw_shell = strdup(_PATH_BSHELL); in p_shell() 219 if (!master_mode && pw->pw_shell && !ok_shell(pw->pw_shell)) { in p_shell() 220 warnx("%s: current shell non-standard", pw->pw_shell); in p_shell() 228 pw->pw_shell = strdup(p); in p_shell() 231 pw->pw_shell = dup_shell(p); in p_shell() 232 if (!pw->pw_shell) { in p_shell() 236 if (stat(pw->pw_shell, &sbuf) < 0) { in p_shell() 239 pw->pw_shell); in p_shell() 241 warn("WARNING: can't stat shell '%s'", pw->pw_shell); in p_shell() 246 pw->pw_shell); in p_shell() [all …]
|
H A D | edit.c | 127 *pw->pw_shell ? pw->pw_shell : _PATH_BSHELL); in display() 131 else if (ok_shell(pw->pw_shell)) in display() 137 else if ((!list[E_SHELL].restricted && ok_shell(pw->pw_shell)) || in display() 145 *pw->pw_shell ? pw->pw_shell : _PATH_BSHELL); in display()
|
/freebsd/usr.sbin/rpc.yppasswdd/ |
H A D | yppasswdd_server.c | 82 pwd->pw_shell = xpwd->pw_shell; in xlate_passwd() 133 EXPAND(yp_password.pw_shell); in copy_yp_pass() 169 if (validchars(npw->pw_shell)) { in validate_master() 215 if (!no_chsh && !ok_shell(npw->pw_shell)) { in validate() 216 yp_error("%s is not a valid shell", npw->pw_shell); in validate() 220 if (!no_chsh && validchars(npw->pw_shell)) { in validate() 413 pw->pw_shell); in update_inplace() 419 pw->pw_shell); in update_inplace() 580 if (!no_chsh && strcmp(argp->newpw.pw_shell, yp_password.pw_shell)) { in yppasswdproc_update_1_svc() 581 oldshell = yp_password.pw_shell; in yppasswdproc_update_1_svc() [all …]
|
H A D | yppasswd_private.x | 50 string pw_shell<>; /* default shell */
|
/freebsd/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() 290 if (pwd->pw_shell == NULL) in passwd_test_correctness()
|
/freebsd/lib/libutil/ |
H A D | pw_util.c | 389 strcmp(pw1->pw_shell, pw2->pw_shell) == 0); in pw_equal() 403 pw->pw_gecos, pw->pw_dir, pw->pw_shell); in pw_make() 417 pw->pw_gecos, pw->pw_dir, pw->pw_shell); in pw_make_v7() 619 if (pw->pw_shell != NULL) in pw_dup() 620 len += strlen(pw->pw_shell) + 1; in pw_dup() 645 if (pw->pw_shell != NULL) { in pw_dup() 646 npw->pw_shell = dst; in pw_dup() 647 dst = stpcpy(npw->pw_shell, pw->pw_shell) + 1; in pw_dup()
|
/freebsd/usr.sbin/nscd/agents/ |
H A D | passwd.c | 63 if (pwd->pw_shell != NULL) in passwd_marshal_func() 64 desired_size += strlen(pwd->pw_shell) + 1; in passwd_marshal_func() 114 if (new_pwd.pw_shell != NULL) { in passwd_marshal_func() 115 size = strlen(new_pwd.pw_shell); in passwd_marshal_func() 116 memcpy(p, new_pwd.pw_shell, size); in passwd_marshal_func() 117 new_pwd.pw_shell = p; in passwd_marshal_func()
|
/freebsd/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/usr.bin/login/ |
H A D | login.c | 445 shell = login_getcapstr(lc, "shell", pwd->pw_shell, pwd->pw_shell); in main() 446 if (*pwd->pw_shell == '\0') in main() 447 pwd->pw_shell = strdup(_PATH_BSHELL); in main() 448 if (pwd->pw_shell == NULL) { in main() 453 shell = pwd->pw_shell; in main() 598 (void)setenv("SHELL", pwd->pw_shell, 1); in main() 652 p = strrchr(pwd->pw_shell, '/'); in main() 653 if (asprintf(&arg0, "-%s", p ? p + 1 : pwd->pw_shell) >= MAXPATHLEN) { in main()
|
/freebsd/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/usr.bin/su/ |
H A D | su.c | 263 if (pwd->pw_shell != NULL && *pwd->pw_shell != '\0') { in main() 265 strlcpy(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()
|
/freebsd/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/lib/libc/gen/ |
H A D | pw_scan.c | 77 pwd->pw_shell = nul; in __pw_initpwd() 196 if (!(pw->pw_shell = strsep(&bp, ":"))) /* shell */ in __pw_scan() 199 p = pw->pw_shell; in __pw_scan()
|
H A D | getpwent.c | 295 if (pwd->pw_shell != NULL) in pwd_marshal_func() 296 desired_size += strlen(pwd->pw_shell) + 1; 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() 348 memcpy(p, new_pwd.pw_shell, size); in pwd_marshal_func() 349 new_pwd.pw_shell = p; in pwd_marshal_func() 412 NS_APPLY_OFFSET(pwd->pw_shell, orig_buf, p, char *); in pwd_unmarshal_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() [all …]
|
/freebsd/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/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/usr.sbin/jexec/ |
H A D | jexec.c | 137 *pwd->pw_shell ? pwd->pw_shell : _PATH_BSHELL, 1); in main()
|
/freebsd/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/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/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/include/rpcsvc/ |
H A D | yppasswd.x | 55 string pw_shell<>; /* default shell */
|
/freebsd/usr.bin/newgrp/ |
H A D | newgrp.c | 263 shell = pwd->pw_shell; in loginshell() 304 shell = pwd->pw_shell; in doshell()
|
/freebsd/include/ |
H A D | pwd.h | 120 char *pw_shell; /* default shell */ member
|
/freebsd/usr.sbin/pwd_mkdb/ |
H A D | pwd_mkdb.c | 371 COMPACT(pwd.pw_shell); in main() 386 COMPACT(pwd.pw_shell); in main() 468 pwd.pw_gecos, pwd.pw_dir, pwd.pw_shell) < 0) in main()
|
/freebsd/crypto/openssh/ |
H A D | auth.c | 123 char *shell = xstrdup((pw->pw_shell[0] == '\0') ? in allowed_user() 124 _PATH_BSHELL : pw->pw_shell); /* empty = /bin/sh */ in allowed_user() 657 fake.pw_shell = "/nonexist"; in fakepw()
|