/freebsd-11-stable/libexec/ftpd/ |
H A D | extern.h | 87 extern struct passwd *pw;
|
/freebsd-11-stable/contrib/dma/ |
H A D | dma.c | 180 struct passwd *pw; local 224 pw = getpwnam(it->addr); 225 if (pw == NULL) 437 struct passwd *pw; local 440 pw = getpwnam(DMA_ROOT_USER); 441 if (pw == NULL) { 448 if (setuid(pw->pw_uid) != 0)
|
/freebsd-11-stable/crypto/openssh/ |
H A D | ssh.c | 462 process_config_files(const char *host_arg, struct passwd *pw, int post_canon) argument 469 !read_config_file(config, pw, host, host_arg, &options, 474 r = snprintf(buf, sizeof buf, "%s/%s", pw->pw_dir, 477 (void)read_config_file(buf, pw, host, host_arg, 482 (void)read_config_file(_PATH_HOST_CONFIG_FILE, pw, 520 struct passwd *pw; local 578 pw = getpwuid(original_real_uid); 579 if (!pw) { 584 pw = pwcopy(pw); 2056 struct passwd *pw; local [all...] |
H A D | auth-options.c | 122 auth_parse_options(struct passwd *pw, char *opts, char *file, u_long linenum) argument 322 pw->pw_name, remote_host, remote_ip); 452 parse_option_list(struct sshbuf *oblob, struct passwd *pw, argument 549 "(ip=%.200s).", pw->pw_name, 604 auth_cert_options(struct sshkey *k, struct passwd *pw, const char **reason) argument 617 if (parse_option_list(k->cert->critical, pw, 622 if (parse_option_list(k->cert->extensions, pw,
|
H A D | serverloop.c | 473 struct passwd *pw = the_authctxt->pw; local 475 if (pw == NULL || !the_authctxt->valid) 489 (pw->pw_uid == 0 || use_privsep)) { 712 struct passwd *pw = the_authctxt->pw; local 714 if (pw == NULL || !the_authctxt->valid) 736 !bind_permitted(fwd.listen_port, pw->pw_uid))) { 772 (pw->pw_uid != 0 && !use_privsep)) {
|
H A D | auth.h | 63 struct passwd *pw; /* set if 'valid' */ member in struct:Authctxt 180 char *expand_authorized_keys(const char *, struct passwd *pw);
|
H A D | auth-shadow.c | 91 const char *user = ctxt->pw->pw_name;
|
/freebsd-11-stable/contrib/wpa/src/tls/ |
H A D | pkcs5.c | 422 static int pkcs12_key_gen(const u8 *pw, size_t pw_len, const u8 *salt, argument 453 *pos++ = pw[i % pw_len]; 514 u8 *pw; local 523 pw = os_malloc(2 * (pw_len + 1)); 524 if (!pw) 528 WPA_PUT_BE16(&pw[2 * i], passwd[i]); 532 if (pkcs12_key_gen(pw, pw_len, params->salt, params->salt_len, 535 pkcs12_key_gen(pw, pw_len, params->salt, params->salt_len, 538 os_free(pw); 542 os_free(pw); [all...] |
/freebsd-11-stable/usr.sbin/inetd/ |
H A D | builtins.c | 357 struct passwd *pw = NULL; local 571 /* Look up the pw to get the username and home directory*/ 573 pw = getpwuid(uc.cr_uid); 574 if (pw == NULL) 578 snprintf(idbuf, sizeof(idbuf), "%u", (unsigned)pw->pw_uid); 580 strlcpy(idbuf, pw->pw_name, sizeof(idbuf)); 587 if (asprintf(&p, "%s/.noident", pw->pw_dir) == -1) 609 if (initgroups(pw->pw_name, pw->pw_gid) == -1) 611 if (seteuid(pw [all...] |
/freebsd-11-stable/usr.sbin/daemon/ |
H A D | daemon.c | 439 struct passwd *pw = NULL; local 441 pw = getpwnam(user); 442 if (pw == NULL) 445 if (setusercontext(NULL, pw, pw->pw_uid, LOGIN_SETALL) != 0)
|
/freebsd-11-stable/stand/libsa/geli/ |
H A D | geliboot.c | 376 geli_passphrase(struct geli_dev *gdev, char *pw) argument 383 if (i == 0 && pw[0] != '\0') { 384 if (geli_probe(gdev, pw, NULL) == 0) { 389 pwgets(pw, GELI_PW_MAXLEN, 392 if (geli_probe(gdev, pw, NULL) == 0) {
|
/freebsd-11-stable/contrib/tnftp/src/ |
H A D | main.c | 146 struct passwd *pw; local 455 pw = NULL; 458 pw = getpwnam(cp); 459 if (pw == NULL) 460 pw = getpwuid(getuid()); 461 if (pw != NULL) { 462 if (localhome == NULL && !EMPTYSTRING(pw->pw_dir)) 463 localhome = ftp_strdup(pw->pw_dir); 464 localname = ftp_strdup(pw->pw_name);
|
/freebsd-11-stable/usr.sbin/ypldap/ |
H A D | ypldap.c | 503 struct passwd *pw; local 602 if ((pw = getpwnam(YPLDAP_USER)) == NULL) 606 if (setgroups(1, &pw->pw_gid) || 607 setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid) || 608 setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid))
|
/freebsd-11-stable/crypto/heimdal/lib/hdb/ |
H A D | ext.c | 290 heim_octet_string pw; local 308 &pw); 310 ret = der_copy_octet_string(&ext->data.u.password.password, &pw); 317 xstr = pw.data; 318 if (xstr[pw.length - 1] != '\0') { 325 der_free_octet_string(&pw);
|
/freebsd-11-stable/release/tools/ |
H A D | arm.subr | 82 chroot ${CHROOTDIR} /usr/sbin/pw -R ${DESTDIR} \ 85 chroot ${CHROOTDIR} /usr/sbin/pw -R ${DESTDIR} \ 89 chroot ${CHROOTDIR} /usr/sbin/pw -R ${DESTDIR} \
|
/freebsd-11-stable/contrib/sendmail/src/ |
H A D | recipient.c | 1171 register struct passwd *pw; local 1238 while ((pw = getpwent()) != NULL) 1243 if (sm_strcasecmp(pw->pw_name, name) == 0) 1251 sm_pwfullname(pw->pw_gecos, pw->pw_name, buf, sizeof(buf)); 1255 sm_dprintf("fuzzy matches %s\n", pw->pw_name); 1256 message("sending to login name %s", pw->pw_name); 1260 if (pw != NULL) 1267 if (pw == NULL) 1269 sm_mbdb_frompw(user, pw); 1752 register struct passwd *pw; local [all...] |
/freebsd-11-stable/contrib/apr-util/crypto/ |
H A D | apr_passwd.c | 187 APU_DECLARE(apr_status_t) apr_bcrypt_encode(const char *pw, 197 if (_crypt_blowfish_rn(pw, setting, out, out_len) == NULL)
|
/freebsd-11-stable/crypto/heimdal/kdc/ |
H A D | string2key.c | 73 const char *pw, 82 ret = krb5_string_to_key_salt(context, enctype, pw, salt, &key); 71 tokey(krb5_context context, krb5_enctype enctype, const char *pw, krb5_salt salt, const char *label) argument
|
/freebsd-11-stable/contrib/netcat/ |
H A D | socks.c | 116 static char pw[256]; local 120 if (readpassphrase(prompt, pw, sizeof(pw), RPP_REQUIRE_TTY) == NULL) 122 return (pw);
|
/freebsd-11-stable/crypto/heimdal/appl/ftp/ftp/ |
H A D | main.c | 91 struct passwd *pw = NULL; local 138 pw = k_getpwuid(getuid()); 139 if (pw != NULL) { 140 strlcpy(homedir, pw->pw_dir, sizeof(homedir));
|
/freebsd-11-stable/usr.sbin/repquota/ |
H A D | repquota.c | 111 struct passwd *pw; local 157 while ((pw = getpwent()) != 0) 158 (void) addid((u_long)pw->pw_uid, USRQUOTA, pw->pw_name);
|
/freebsd-11-stable/usr.bin/calendar/ |
H A D | io.c | 491 write(pdes[1], pw->pw_name, strlen(pw->pw_name)); 493 write(pdes[1], pw->pw_name, strlen(pw->pw_name));
|
/freebsd-11-stable/usr.sbin/fmtree/ |
H A D | specspec.c | 50 struct passwd *pw; local 73 pw = getpwuid(n->st_uid); 74 if (pw == NULL) 77 printf(" uname=%s", pw->pw_name);
|
/freebsd-11-stable/contrib/mtree/ |
H A D | specspec.c | 59 struct passwd *pw; local 82 pw = getpwuid(n->st_uid); 83 if (pw == NULL) 86 printf(" uname=%s", pw->pw_name);
|
/freebsd-11-stable/bin/getfacl/ |
H A D | getfacl.c | 63 struct passwd *pw; local 66 if ((pw = getpwuid(uid)) == NULL) { 70 return (pw->pw_name);
|