/freebsd-11-stable/crypto/openssh/openbsd-compat/ |
H A D | port-uw.h | 28 char * get_iaf_password(struct passwd *pw);
|
H A D | port-irix.h | 33 void irix_setusercontext(struct passwd *pw);
|
H A D | port-irix.c | 47 irix_setusercontext(struct passwd *pw) argument 59 jid = jlimit_startjob(pw->pw_name, pw->pw_uid, "interactive"); 72 if ((projid = getdfltprojuser(pw->pw_name)) == -1) { 78 (int)projid, pw->pw_name, strerror(errno)); 82 debug("Setting sat id to %d", (int) pw->pw_uid); 83 if (satsetid(pw->pw_uid))
|
H A D | port-uw.c | 56 struct passwd *pw = authctxt->pw; local 61 char *pw_password = authctxt->valid ? shadow_pw(pw) : pw->pw_passwd; 75 if (!nischeck(pw->pw_name)) { 133 get_iaf_password(struct passwd *pw) argument 138 if (!ia_openinfo(pw->pw_name,&uinfo)) {
|
/freebsd-11-stable/usr.bin/mail/ |
H A D | getname.c | 50 struct passwd *pw; local 52 if ((pw = getpwuid(uid)) == NULL) 54 return (pw->pw_name); 64 struct passwd *pw; local 66 if ((pw = getpwnam(name)) == NULL) 68 return (pw->pw_uid);
|
/freebsd-11-stable/lib/libcrypt/ |
H A D | crypt.h | 35 char *crypt_des(const char *pw, const char *salt); 36 char *crypt_md5(const char *pw, const char *salt); 37 char *crypt_nthash(const char *pw, const char *salt); 38 char *crypt_blowfish(const char *pw, const char *salt); 39 char *crypt_sha256 (const char *pw, const char *salt); 40 char *crypt_sha512 (const char *pw, const char *salt);
|
/freebsd-11-stable/crypto/heimdal/lib/roken/ |
H A D | verify.c | 48 struct passwd *pw; local 50 pw = k_getpwnam(user); 51 if(pw == NULL) 53 if(strlen(pw->pw_passwd) == 0 && strlen(password) == 0) 55 if(strcmp(crypt(password, pw->pw_passwd), pw->pw_passwd) == 0)
|
/freebsd-11-stable/release/picobsd/tinyware/passwd/ |
H A D | pw_copy.c | 62 /* for use in pw_copy(). Compare a pw entry to a pw struct. */ 64 pw_equal(char *buf, struct passwd *pw) argument 72 return (strcmp(pw->pw_name, buf_pw.pw_name) == 0 73 && pw->pw_uid == buf_pw.pw_uid 74 && pw->pw_gid == buf_pw.pw_gid 75 && strcmp(pw->pw_class, buf_pw.pw_class) == 0 76 && (long)pw->pw_change == (long)buf_pw.pw_change 77 && (long)pw->pw_expire == (long)buf_pw.pw_expire 78 && strcmp(pw 84 pw_copy(int ffd, int tfd, struct passwd *pw, struct passwd *old_pw) argument [all...] |
H A D | local_passwd.c | 76 pw_copy(int ffd, int tfd, struct passwd *pw, struct passwd *old_pw); 96 getnewpasswd(pw, nis) 97 struct passwd *pw; 110 (void)printf("Changing local password for %s.\n", pw->pw_name); 112 if (uid && pw->pw_passwd[0] && 113 strcmp(crypt(getpass("Old password:"), pw->pw_passwd), 114 pw->pw_passwd)) { 125 if ((lc = login_getpwclass(pw)) != NULL) { 134 pw->pw_change = time(NULL) + period; 201 struct passwd *pw; local [all...] |
/freebsd-11-stable/lib/libc/gen/ |
H A D | pw_scan.c | 87 __pw_scan(char *bp, struct passwd *pw, int flags) argument 97 pw->pw_fields = 0; 98 if (!(pw->pw_name = strsep(&bp, ":"))) /* login */ 100 root = !strcmp(pw->pw_name, "root"); 101 if (pw->pw_name[0] && (pw->pw_name[0] != '+' || pw->pw_name[1] == '\0')) 102 pw->pw_fields |= _PWF_NAME; 104 if (!(pw->pw_passwd = strsep(&bp, ":"))) /* passwd */ 106 if (pw [all...] |
/freebsd-11-stable/usr.bin/chpass/ |
H A D | field.c | 66 p_login(char *p, struct passwd *pw, ENTRY *ep __unused) argument 76 if (!(pw->pw_name = strdup(p))) { 92 p_passwd(char *p, struct passwd *pw, ENTRY *ep __unused) argument 94 if (!(pw->pw_passwd = strdup(p))) { 104 p_uid(char *p, struct passwd *pw, ENTRY *ep __unused) argument 123 pw->pw_uid = id; 129 p_gid(char *p, struct passwd *pw, ENTRY *ep __unused) argument 144 pw->pw_gid = gr->gr_gid; 153 pw->pw_gid = id; 159 p_class(char *p, struct passwd *pw, ENTR argument 171 p_change(char *p, struct passwd *pw, ENTRY *ep __unused) argument 181 p_expire(char *p, struct passwd *pw, ENTRY *ep __unused) argument 202 p_hdir(char *p, struct passwd *pw, ENTRY *ep __unused) argument 217 p_shell(char *p, struct passwd *pw, ENTRY *ep __unused) argument [all...] |
H A D | chpass.c | 82 struct passwd lpw, *old_pw, *pw; local 92 pw = old_pw = NULL; 144 if ((pw = getpwuid(uid)) == NULL) 148 if ((pw = getpwnam(*argv)) == NULL) 150 if (uid != 0 && uid != pw->pw_uid) 155 if ((pw = pw_dup(pw)) == NULL || 156 (old_pw = pw_dup(pw)) == NULL) 161 if (pw != NULL && (pw [all...] |
H A D | edit.c | 68 static int display(const char *tfn, struct passwd *pw); 69 static struct passwd *verify(const char *tfn, struct passwd *pw); 72 edit(const char *tfn, struct passwd *pw) argument 78 if (display(tfn, pw) == -1) 85 return (pw_dup(pw)); 89 if ((npw = verify(tfn, pw)) != NULL) 109 display(const char *tfn, struct passwd *pw) argument 120 "#Changing user information for %s.\n", pw->pw_name); 122 (void)fprintf(fp, "Login: %s\n", pw->pw_name); 123 (void)fprintf(fp, "Password: %s\n", pw 199 verify(const char *tfn, struct passwd *pw) argument [all...] |
/freebsd-11-stable/usr.bin/id/ |
H A D | id.c | 78 struct passwd *pw; local 157 pw = *argv ? who(*argv) : NULL; 159 if (Mflag && pw != NULL) 178 id = pw ? pw->pw_gid : rflag ? getgid() : getegid(); 187 id = pw ? pw->pw_uid : rflag ? getuid() : geteuid(); 188 if (nflag && (pw = getpwuid(id))) 189 (void)printf("%s\n", pw->pw_name); 196 group(pw, nfla 227 pretty(struct passwd *pw) argument 267 id_print(struct passwd *pw, int use_ggl, int p_euid, int p_egid) argument 378 group(struct passwd *pw, int nflag) argument 444 struct passwd *pw; local 462 pline(struct passwd *pw) argument [all...] |
/freebsd-11-stable/contrib/apr/user/unix/ |
H A D | userinfo.c | 36 struct passwd *pw, 48 rv = getpwnam_r(username, pw, pwbuf, PWBUF_SIZE, &pwptr); 60 memcpy(pw, pwptr, sizeof *pw); 73 struct passwd pw; local 77 if ((rv = getpwnam_safe(username, &pw, pwbuf)) != APR_SUCCESS) 82 *dirname = apr_pstrcat(p, pw.pw_dir, pw.pw_name, NULL); 84 *dirname = apr_pstrdup(p, pw.pw_dir); 107 struct passwd pw; local 35 getpwnam_safe(const char *username, struct passwd *pw, char pwbuf[PWBUF_SIZE]) argument 123 struct passwd *pw; local [all...] |
/freebsd-11-stable/lib/libcrypt/tests/ |
H A D | crypt_tests.c | 22 char *pw; local 24 pw = crypt(LEET, want); 25 ATF_CHECK_STREQ(pw, want); 38 char *pw; local 40 pw = crypt(LEET, want); 41 ATF_CHECK(strcmp(pw, want) != 0);
|
/freebsd-11-stable/usr.sbin/pw/ |
H A D | Makefile | 3 PROG= pw 4 MAN= pw.conf.5 pw.8 5 SRCS= pw.c pw_conf.c pw_user.c pw_group.c pw_log.c pw_nis.c pw_vpw.c \
|
/freebsd-11-stable/crypto/openssh/ |
H A D | uidswap.c | 60 temporarily_use_uid(struct passwd *pw) argument 67 (u_int)pw->pw_uid, (u_int)pw->pw_gid, 99 if (initgroups(pw->pw_name, pw->pw_gid) < 0) 100 fatal("initgroups: %s: %.100s", pw->pw_name, 126 if (setegid(pw->pw_gid) < 0) 127 fatal("setegid %u: %.100s", (u_int)pw->pw_gid, 129 if (seteuid(pw->pw_uid) == -1) 130 fatal("seteuid %u: %.100s", (u_int)pw 206 permanently_set_uid(struct passwd *pw) argument [all...] |
H A D | platform.c | 98 platform_setusercontext(struct passwd *pw) argument 112 solaris_set_default_project(pw); 135 if (getluid() == -1 && setluid(pw->pw_uid) == -1) 146 platform_setusercontext_post_groups(struct passwd *pw) argument 161 irix_setusercontext(pw); 165 aix_usrinfo(pw); 182 if (setpcred(pw->pw_name, creds) == -1) 187 ssh_selinux_setup_exec_context(pw->pw_name);
|
H A D | auth-rhosts.c | 190 auth_rhosts2(struct passwd *pw, const char *client_user, const char *hostname, argument 202 temporarily_use_uid(pw); 213 pw->pw_dir, rhosts_files[rhosts_file_index]); 235 if (pw->pw_uid == 0) 239 client_user, pw->pw_name)) { 245 client_user, pw->pw_name)) { 256 if (stat(pw->pw_dir, &st) < 0) { 258 "no home directory %.200s", pw->pw_name, pw->pw_dir); 260 "no home directory %.200s", pw [all...] |
/freebsd-11-stable/crypto/heimdal/kadmin/ |
H A D | random_password.c | 50 static void generate_password(char **pw, int num_classes, ...); 54 random_password(char *pw, size_t len) argument 61 otp_print_stddict (newkey, pw, len); 62 strlwr(pw); 70 strlcpy(pw, pass, len); 112 generate_password(char **pw, int num_classes, ...) argument 124 *pw = NULL; 138 *pw = malloc(len + 1); 139 if(*pw == NULL) { 149 (*pw)[ [all...] |
/freebsd-11-stable/libexec/ulog-helper/ |
H A D | ulog-helper.c | 52 const struct passwd *pw; local 63 if ((login = getlogin()) != NULL && (pw = getpwnam(login)) != NULL && 64 pw->pw_uid == uid) 66 if ((pw = getpwuid(uid)) != NULL) 67 return (pw->pw_name);
|
/freebsd-11-stable/contrib/netbsd-tests/kernel/arch/amd64/ |
H A D | t_ptrace_wait.c | 215 struct ptrace_watchpoint pw; local 216 int len = sizeof(pw); 244 pw.pw_index = i; 245 ATF_REQUIRE(ptrace(PT_READ_WATCHPOINT, child, &pw, len) != -1); 248 printf("\t.pw_index=%d\n", pw.pw_index); 249 printf("\t.pw_lwpid=%d\n", pw.pw_lwpid); 250 printf("\t.pw_type=%#x\n", pw.pw_type); 251 printf("\t.pw_md.md_address=%p\n", pw.pw_md.md_address); 252 printf("\t.pw_md.md_condition=%#x\n", pw.pw_md.md_condition); 253 printf("\t.pw_md.md_length=%#x\n", pw 289 struct ptrace_watchpoint pw; local 366 struct ptrace_watchpoint pw; local 472 struct ptrace_watchpoint pw; local 578 struct ptrace_watchpoint pw; local 684 struct ptrace_watchpoint pw; local 790 struct ptrace_watchpoint pw; local 891 struct ptrace_watchpoint pw; local 992 struct ptrace_watchpoint pw; local 1094 struct ptrace_watchpoint pw; local 1195 struct ptrace_watchpoint pw; local 1296 struct ptrace_watchpoint pw; local 1397 struct ptrace_watchpoint pw; local 1498 struct ptrace_watchpoint pw; local [all...] |
/freebsd-11-stable/contrib/openbsm/bin/auditdistd/ |
H A D | sandbox.c | 70 struct passwd *pw; local 96 pw = getpwnam(user); 97 if (pw == NULL) { 122 if (getgrouplist(user, pw->pw_gid, groups, &ngroups) == -1) { 137 jailst.path = pw->pw_dir; 144 "Unable to jail to directory %s", pw->pw_dir); 152 if (chroot(pw->pw_dir) == -1) { 155 pw->pw_dir); 165 if (setgid(pw->pw_gid) == -1) { 167 (unsigned int)pw [all...] |
/freebsd-11-stable/crypto/heimdal/kdc/ |
H A D | main.c | 75 struct passwd *pw; local 77 pw = getpwnam(runas_string); 78 if (pw == NULL) 81 if (initgroups(pw->pw_name, pw->pw_gid) < 0) 85 if (setgid(pw->pw_gid) < 0) 88 if (setuid(pw->pw_uid) < 0) 96 if (capng_change_id(pw->pw_uid, pw->pw_gid,
|