/freebsd-10.3-release/crypto/openssh/openbsd-compat/ |
H A D | port-uw.h | 28 char * get_iaf_password(struct passwd *pw);
|
H A D | port-irix.h | 35 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-10.3-release/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-10.3-release/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-10.3-release/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-10.3-release/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-10.3-release/lib/libc/gen/ |
H A D | pw_scan.c | 71 __pw_scan(char *bp, struct passwd *pw, int flags) argument 81 pw->pw_fields = 0; 82 if (!(pw->pw_name = strsep(&bp, ":"))) /* login */ 84 root = !strcmp(pw->pw_name, "root"); 85 if (pw->pw_name[0] && (pw->pw_name[0] != '+' || pw->pw_name[1] == '\0')) 86 pw->pw_fields |= _PWF_NAME; 88 if (!(pw->pw_passwd = strsep(&bp, ":"))) /* passwd */ 90 if (pw [all...] |
/freebsd-10.3-release/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-10.3-release/usr.bin/id/ |
H A D | id.c | 77 struct passwd *pw; local 156 pw = *argv ? who(*argv) : NULL; 158 if (Mflag && pw != NULL) 177 id = pw ? pw->pw_gid : rflag ? getgid() : getegid(); 186 id = pw ? pw->pw_uid : rflag ? getuid() : geteuid(); 187 if (nflag && (pw = getpwuid(id))) 188 (void)printf("%s\n", pw->pw_name); 195 group(pw, nfla 226 pretty(struct passwd *pw) argument 266 id_print(struct passwd *pw, int use_ggl, int p_euid, int p_egid) argument 377 group(struct passwd *pw, int nflag) argument 443 struct passwd *pw; local 461 pline(struct passwd *pw) argument [all...] |
/freebsd-10.3-release/crypto/openssh/ |
H A D | auth-rh-rsa.c | 45 auth_rhosts_rsa_key_allowed(struct passwd *pw, char *cuser, char *chost, argument 54 if (!auth_rhosts(pw, cuser)) 57 host_status = check_key_in_hostfiles(pw, client_host_key, 72 struct passwd *pw = authctxt->pw; local 84 if (!PRIVSEP(auth_rhosts_rsa_key_allowed(pw, cuser, chost, client_host_key))) { 103 pw->pw_name, cuser, chost);
|
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 | 102 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);
|
/freebsd-10.3-release/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-10.3-release/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-10.3-release/usr.sbin/pw/tests/ |
H A D | Makefile | 1 # $FreeBSD: releng/10.3/usr.sbin/pw/tests/Makefile 287084 2015-08-23 21:42:27Z bapt $ 3 TESTSDIR= ${TESTSBASE}/usr.sbin/pw 20 FILES= group helper_functions.shin master.passwd pw.conf \ 21 pw-modified.conf
|
/freebsd-10.3-release/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-10.3-release/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-10.3-release/lib/libutil/ |
H A D | pw_util.c | 399 pw_make(const struct passwd *pw) argument 403 asprintf(&line, "%s:%s:%ju:%ju:%s:%ju:%ju:%s:%s:%s", pw->pw_name, 404 pw->pw_passwd, (uintmax_t)pw->pw_uid, (uintmax_t)pw->pw_gid, 405 pw->pw_class, (uintmax_t)pw->pw_change, (uintmax_t)pw->pw_expire, 406 pw->pw_gecos, pw 414 pw_make_v7(const struct passwd *pw) argument 429 pw_copy(int ffd, int tfd, const struct passwd *pw, struct passwd *old_pw) argument 594 pw_dup(const struct passwd *pw) argument 652 struct passwd pw, *ret; local [all...] |
/freebsd-10.3-release/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-10.3-release/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,
|