Home
last modified time | relevance | path

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

123

/freebsd-14.2/usr.bin/chpass/
H A Dfield.c222 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 Dedit.c134 *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 Dyppasswdd_server.c83 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 Dyppasswd_private.x50 string pw_shell<>; /* default shell */
/freebsd-14.2/lib/libc/tests/nss/
H A Dgetpw_test.c95 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 Dpasswd.c64 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 Dpw_util.c391 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 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()
/freebsd-14.2/lib/nss_tacplus/
H A Dnss_tacplus.c218 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 Dlogin.c451 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 Dsu.c276 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 Dsu.c115 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 Dpw_scan.c79 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 Dgetpwent.c295 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 Dlogins.c50 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 Drcmdsh.c143 if (pw->pw_shell[0] == '\0') in rcmdsh()
146 rshprog = pw->pw_shell; in rcmdsh()
/freebsd-14.2/usr.sbin/jexec/
H A Djexec.c131 *pwd->pw_shell ? pwd->pw_shell : _PATH_BSHELL, 1); in main()
/freebsd-14.2/contrib/llvm-project/lldb/source/Host/posix/
H A DHostInfoPosix.cpp77 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 Dyppasswd.x63 string pw_shell<>; /* default shell */
/freebsd-14.2/crypto/heimdal/appl/rsh/
H A Drshd.c581 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 Dauthpf.c151 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 Dpwd_test.c134 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 Dnewgrp.c264 shell = pwd->pw_shell; in loginshell()
305 shell = pwd->pw_shell; in doshell()
/freebsd-14.2/include/
H A Dpwd.h122 char *pw_shell; /* default shell */ member
/freebsd-14.2/contrib/openpam/bin/su/
H A Dsu.c146 *args = pwd->pw_shell; in main()

123