/freebsd-9.3-release/usr.sbin/chroot/ |
H A D | chroot.c | 67 struct passwd *pw; local 150 if ((pw = getpwnam(user)) != NULL) 151 uid = pw->pw_uid;
|
/freebsd-9.3-release/contrib/sendmail/vacation/ |
H A D | vacation.c | 151 struct passwd *pw; local 167 pw = getpwuid(RealUid); 168 if (pw != NULL) 170 if (strlen(pw->pw_name) > MAXNAME - 1) 171 pw->pw_name[MAXNAME] = '\0'; 172 sm_snprintf(rnamebuf, sizeof rnamebuf, "%s", pw->pw_name); 296 if ((pw = getpwuid(getuid())) == NULL) 302 name = strdup(pw->pw_name); 303 user_info.smdbu_id = pw->pw_uid; 304 user_info.smdbu_group_id = pw [all...] |
/freebsd-9.3-release/crypto/heimdal/admin/ |
H A D | add.c | 127 krb5_data pw; local 132 pw.data = (void*)opt->password_string; 133 pw.length = strlen(opt->password_string); 134 ret = krb5_string_to_key_data_salt(context, enctype, pw, salt,
|
/freebsd-9.3-release/crypto/openssh/openbsd-compat/ |
H A D | port-solaris.c | 210 solaris_set_default_project(struct passwd *pw) argument 217 if ((defaultproject = getdefaultproj(pw->pw_name, &tempproject, &buf, 220 if (setproject(defaultproject->pj_name, pw->pw_name, 226 debug("getdefaultproj(%s): %s", pw->pw_name, strerror(errno));
|
/freebsd-9.3-release/crypto/openssh/ |
H A D | session.h | 35 struct passwd *pw; member in struct:Session
|
H A D | auth-krb5.c | 85 platform_client = platform_krb5_get_principal_name(authctxt->pw->pw_name); 86 client = platform_client ? platform_client : authctxt->pw->pw_name; 88 temporarily_use_uid(authctxt->pw); 119 temporarily_use_uid(authctxt->pw); 156 temporarily_use_uid(authctxt->pw); 161 authctxt->pw->pw_name)) {
|
H A D | ssh-keygen.c | 208 ask_filename(struct passwd *pw, const char *prompt) argument 246 snprintf(identity_file, sizeof(identity_file), "%s/%s", pw->pw_dir, name); 282 do_convert_to_ssh2(struct passwd *pw, Key *k) argument 300 pw->pw_name, hostname); 359 do_convert_to(struct passwd *pw) argument 365 ask_filename(pw, "Enter file in which the key is"); 377 do_convert_to_ssh2(pw, k); 529 do_convert_from_ssh2(struct passwd *pw, Key **k, int *private) argument 656 do_convert_from(struct passwd *pw) argument 663 ask_filename(pw, "Ente 716 do_print_public(struct passwd *pw) argument 740 do_download(struct passwd *pw) argument 782 do_fingerprint(struct passwd *pw) argument 890 do_gen_all_hostkeys(struct passwd *pw) argument 1012 do_known_hosts(struct passwd *pw, const char *name) argument 1237 do_change_passphrase(struct passwd *pw) argument 1319 do_print_resource_record(struct passwd *pw, char *fname, char *hname) argument 1351 do_change_comment(struct passwd *pw) argument 1564 do_ca_sign(struct passwd *pw, int argc, char **argv) argument 1864 do_show_cert(struct passwd *pw) argument 1946 update_krl_from_file(struct passwd *pw, const char *file, const Key *ca, struct ssh_krl *krl) argument 2069 do_gen_krl(struct passwd *pw, int updating, int argc, char **argv) argument 2123 do_check_krl(struct passwd *pw, int argc, char **argv) argument 2215 struct passwd *pw; local [all...] |
H A D | auth2.c | 244 authctxt->pw = PRIVSEP(getpwnamallow(user)); 246 if (authctxt->pw && strcmp(service, "ssh-connection")==0) { 251 authctxt->pw = fakepw(); 277 if (authctxt->pw != NULL) { 278 lc = login_getpwclass(authctxt->pw); 280 lc = login_getclassbyname(NULL, authctxt->pw); 283 authctxt->pw->pw_name, from_host, from_ip); 288 authctxt->pw->pw_name, from_host); 335 if (authenticated && authctxt->pw->pw_uid == 0 &&
|
H A D | auth1.c | 322 if (authenticated && authctxt->pw->pw_uid == 0 && 399 if ((authctxt->pw = PRIVSEP(getpwnamallow(user))) != NULL) 403 authctxt->pw = fakepw(); 424 if (!use_privsep && getuid() != 0 && authctxt->pw && 425 authctxt->pw->pw_uid != getuid())
|
H A D | ssh.c | 386 process_config_files(struct passwd *pw) argument 393 !read_config_file(config, pw, host, &options, 398 r = snprintf(buf, sizeof buf, "%s/%s", pw->pw_dir, 401 (void)read_config_file(buf, pw, host, &options, 405 (void)read_config_file(_PATH_HOST_CONFIG_FILE, pw, host, 421 struct passwd *pw; local 476 pw = getpwuid(original_real_uid); 477 if (!pw) { 482 pw = pwcopy(pw); 1806 struct passwd *pw; local [all...] |
H A D | logintest.c | 87 struct passwd *pw; local 100 pw = getpwuid(getuid()); 101 strlcpy(username, pw->pw_name, sizeof(username));
|
/freebsd-9.3-release/usr.bin/newkey/ |
H A D | newkey.c | 105 struct passwd *pw; local 122 pw = getpwnam(argv[2]); 123 if (pw == NULL) 125 (void)user2netname(name, (int)pw->pw_uid, (char *)NULL);
|
/freebsd-9.3-release/crypto/heimdal/lib/kadm5/ |
H A D | password_quality.c | 100 char *pw; local 108 pw = malloc(len); 109 if (pw == NULL) { 113 strlcpy(pw, pwd->data, len); 114 len = strlen(pw); 117 if (strcspn(pw, classes[i]) < len) 120 memset(pw, 0, pwd->length + 1); 121 free(pw);
|
/freebsd-9.3-release/usr.bin/csup/ |
H A D | idcache.c | 153 struct passwd *pw; local 170 pw = getpwuid(uid); 171 if (pw != NULL) { 173 uidc->name = xstrdup(pw->pw_name); 246 struct passwd *pw; local 262 pw = getpwnam(name); 263 if (pw != NULL) { 266 uidc->uid = pw->pw_uid;
|
/freebsd-9.3-release/contrib/sendmail/praliases/ |
H A D | praliases.c | 69 struct passwd *pw; local 77 pw = getpwuid(RealUid); 78 if (pw != NULL) 80 if (strlen(pw->pw_name) > MAXNAME - 1) 81 pw->pw_name[MAXNAME] = 0; 82 sm_snprintf(rnamebuf, sizeof rnamebuf, "%s", pw->pw_name);
|
/freebsd-9.3-release/usr.bin/lock/ |
H A D | lock.c | 91 struct passwd *pw; local 103 pw = NULL; 116 if (!(pw = getpwuid(getuid()))) 118 mypw = strdup(pw->pw_passwd); 202 if (pw != NULL) 203 (void)printf("lock: %s using %s on %s.", pw->pw_name,
|
/freebsd-9.3-release/usr.sbin/cron/crontab/ |
H A D | crontab.c | 65 static struct passwd *pw; variable in typeref:struct:passwd 136 if (!(pw = getpwuid(getuid()))) 138 bzero(pw->pw_passwd, strlen(pw->pw_passwd)); 139 (void) strncpy(User, pw->pw_name, (sizeof User)-1); 153 if (!(pw = getpwnam(optarg))) 155 bzero(pw->pw_passwd, strlen(pw->pw_passwd)); 156 (void) strncpy(User, pw->pw_name, (sizeof User)-1); 559 e = load_entry(tmp, check_error, pw, env [all...] |
/freebsd-9.3-release/contrib/sendmail/editmap/ |
H A D | editmap.c | 96 struct passwd *pw; local 122 pw = getpwuid(RealUid); 123 if (pw != NULL) 124 (void) sm_strlcpy(rnamebuf, pw->pw_name, sizeof rnamebuf); 244 pw = getpwnam(b); 245 if (pw == NULL) 249 TrustedUid = pw->pw_uid;
|
/freebsd-9.3-release/contrib/sendmail/makemap/ |
H A D | makemap.c | 99 struct passwd *pw; local 127 pw = getpwuid(RealUid); 128 if (pw != NULL) 129 (void) sm_strlcpy(rnamebuf, pw->pw_name, sizeof rnamebuf); 272 pw = getpwnam(b); 273 if (pw == NULL) 278 TrustedUid = pw->pw_uid;
|
/freebsd-9.3-release/usr.bin/killall/ |
H A D | killall.c | 95 struct passwd *pw; local 256 pw = getpwnam(user); 257 if (pw == NULL) 259 uid = pw->pw_uid; 266 pw = getpwuid(uid); 267 if (pw) 268 user = pw->pw_name;
|
/freebsd-9.3-release/contrib/libc-pwcache/ |
H A D | pwcache.c | 265 struct passwd *pw; local 298 if ((pw = (*_pwcache_getpwuid)(uid)) == NULL) { 315 return (pw->pw_name); 317 (void)strlcpy(ptr->name, pw->pw_name, UNMLEN); 401 struct passwd *pw; local 441 if ((pw = (*_pwcache_getpwnam)(name)) == NULL) 443 *uid = pw->pw_uid; 447 if ((pw = (*_pwcache_getpwnam)(name)) == NULL) { 452 *uid = ptr->uid = pw->pw_uid;
|
/freebsd-9.3-release/crypto/heimdal/appl/ftp/ftpd/ |
H A D | ftpd.c | 65 struct passwd *pw; variable in typeref:struct:passwd 498 * Sets global passwd pointer pw if named account exists and is acceptable; 501 * _PATH_FTPUSERS, and ftp account exists, set guest and pw, then just return. 534 else if ((pw = sgetpwnam("ftp")) != NULL) { 560 if ((pw = sgetpwnam(name))) { 561 if ((shell = pw->pw_shell) == NULL || *shell == 0) 587 pw = (struct passwd *) NULL; 722 if (setegid((gid_t)pw->pw_gid) < 0) { 726 initgroups(pw->pw_name, pw [all...] |
/freebsd-9.3-release/contrib/amd/amd/ |
H A D | ops_pcfs.c | 164 struct passwd *pw; local 165 if ((pw = getpwnam(str)) != NULL) 166 pcfs_args.uid = pw->pw_uid;
|
/freebsd-9.3-release/sbin/mount_unionfs/ |
H A D | mount_unionfs.c | 112 struct passwd *pw; local 115 if ((pw = getpwnam(s)) != NULL) 116 snprintf(buf, bufsize, "%d", pw->pw_uid);
|
/freebsd-9.3-release/sbin/reboot/ |
H A D | reboot.c | 69 const struct passwd *pw; local 135 user = (pw = getpwuid(getuid())) ? 136 pw->pw_name : "???";
|