/freebsd-current/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 | 49 irix_setusercontext(struct passwd *pw) argument 61 jid = jlimit_startjob(pw->pw_name, pw->pw_uid, "interactive"); 74 if ((projid = getdfltprojuser(pw->pw_name)) == -1) { 80 (int)projid, pw->pw_name, strerror(errno)); 84 debug("Setting sat id to %d", (int) pw->pw_uid); 85 if (satsetid(pw->pw_uid))
|
/freebsd-current/tests/sys/cddl/zfs/bin/ |
H A D | groupshow.ksh | 3 /usr/sbin/pw groupshow $*
|
H A D | useradd.ksh | 11 /usr/sbin/pw useradd $g $a
|
H A D | userdel.ksh | 11 /usr/sbin/pw userdel $g $a
|
H A D | usermod.ksh | 11 /usr/sbin/pw usermod $g $a
|
H A D | groupadd.ksh | 11 /usr/sbin/pw groupadd $g $a
|
H A D | groupdel.ksh | 11 /usr/sbin/pw groupdel $a $g
|
H A D | groupmod.ksh | 11 /usr/sbin/pw groupmod $g $a
|
/freebsd-current/usr.bin/mail/ |
H A D | getname.c | 44 struct passwd *pw; local 46 if ((pw = getpwuid(uid)) == NULL) 48 return (pw->pw_name); 58 struct passwd *pw; local 60 if ((pw = getpwnam(name)) == NULL) 62 return (pw->pw_uid);
|
/freebsd-current/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-current/lib/libcrypt/ |
H A D | crypt.h | 35 int crypt_des(const char *pw, const char *salt, char *buf); 36 int crypt_md5(const char *pw, const char *salt, char *buf); 37 int crypt_nthash(const char *pw, const char *salt, char *buf); 38 int crypt_blowfish(const char *pw, const char *salt, char *buf); 39 int crypt_sha256 (const char *pw, const char *salt, char *buf); 40 int crypt_sha512 (const char *pw, const char *salt, char *buf);
|
/freebsd-current/libexec/nuageinit/tests/ |
H A D | adduser.lua | 10 local pw = {} 11 pw.name = "impossible_username" 12 local res = n.adduser(pw)
|
/freebsd-current/crypto/openssh/ |
H A D | uidswap.c | 61 temporarily_use_uid(struct passwd *pw) argument 68 (u_int)pw->pw_uid, (u_int)pw->pw_gid, 100 if (user_groupslen == -1 || user_groups_uid != pw->pw_uid) { 101 if (initgroups(pw->pw_name, pw->pw_gid) == -1) 102 fatal("initgroups: %s: %.100s", pw->pw_name, 117 user_groups_uid = pw->pw_uid; 130 if (setegid(pw->pw_gid) == -1) 131 fatal("setegid %u: %.100s", (u_int)pw 181 permanently_set_uid(struct passwd *pw) argument [all...] |
/freebsd-current/lib/libc/gen/ |
H A D | pw_scan.c | 81 __pw_scan(char *bp, struct passwd *pw, int flags) argument 91 pw->pw_fields = 0; 92 if (!(pw->pw_name = strsep(&bp, ":"))) /* login */ 94 root = !strcmp(pw->pw_name, "root"); 95 if (pw->pw_name[0] && (pw->pw_name[0] != '+' || pw->pw_name[1] == '\0')) 96 pw->pw_fields |= _PWF_NAME; 98 if (!(pw->pw_passwd = strsep(&bp, ":"))) /* passwd */ 100 if (pw [all...] |
/freebsd-current/usr.bin/chpass/ |
H A D | field.c | 59 p_login(char *p, struct passwd *pw, ENTRY *ep __unused) argument 69 if (!(pw->pw_name = strdup(p))) { 85 p_passwd(char *p, struct passwd *pw, ENTRY *ep __unused) argument 87 if (!(pw->pw_passwd = strdup(p))) { 97 p_uid(char *p, struct passwd *pw, ENTRY *ep __unused) argument 116 pw->pw_uid = id; 122 p_gid(char *p, struct passwd *pw, ENTRY *ep __unused) argument 137 pw->pw_gid = gr->gr_gid; 146 pw->pw_gid = id; 152 p_class(char *p, struct passwd *pw, ENTR argument 164 p_change(char *p, struct passwd *pw, ENTRY *ep __unused) argument 174 p_expire(char *p, struct passwd *pw, ENTRY *ep __unused) argument 195 p_hdir(char *p, struct passwd *pw, ENTRY *ep __unused) argument 210 p_shell(char *p, struct passwd *pw, ENTRY *ep __unused) argument [all...] |
H A D | chpass.c | 70 struct passwd lpw, *old_pw, *pw; local 80 pw = old_pw = NULL; 132 if ((pw = getpwuid(uid)) == NULL) 136 if ((pw = getpwnam(*argv)) == NULL) 138 if (uid != 0 && uid != pw->pw_uid) 143 if ((pw = pw_dup(pw)) == NULL || 144 (old_pw = pw_dup(pw)) == NULL) 149 if (pw != NULL && (pw [all...] |
H A D | edit.c | 61 static int display(const char *tfn, struct passwd *pw); 62 static struct passwd *verify(const char *tfn, struct passwd *pw); 65 edit(const char *tfn, struct passwd *pw) argument 71 if (display(tfn, pw) == -1) 78 return (pw_dup(pw)); 82 if ((npw = verify(tfn, pw)) != NULL) 102 display(const char *tfn, struct passwd *pw) argument 113 "#Changing user information for %s.\n", pw->pw_name); 115 (void)fprintf(fp, "Login: %s\n", pw->pw_name); 116 (void)fprintf(fp, "Password: %s\n", pw 192 verify(const char *tfn, struct passwd *pw) argument [all...] |
/freebsd-current/usr.bin/id/ |
H A D | id.c | 66 struct passwd *pw; local 147 pw = *argv ? who(*argv) : NULL; 149 if (Mflag && pw != NULL) 168 id = pw ? pw->pw_gid : rflag ? getgid() : getegid(); 177 id = pw ? pw->pw_uid : rflag ? getuid() : geteuid(); 178 if (nflag && (pw = getpwuid(id))) 179 (void)printf("%s\n", pw->pw_name); 186 group(pw, nfla 217 pretty(struct passwd *pw) argument 257 id_print(struct passwd *pw, int use_ggl, int p_euid, int p_egid) argument 368 group(struct passwd *pw, int nflag) argument 434 struct passwd *pw; local 452 pline(struct passwd *pw) argument [all...] |
/freebsd-current/lib/libcrypt/tests/ |
H A D | crypt_tests.c | 20 char *pw; local 22 pw = crypt(LEET, want); 23 ATF_CHECK_STREQ(pw, want); 36 char *pw; local 38 pw = crypt(LEET, want); 39 ATF_CHECK(strcmp(pw, want) != 0);
|
/freebsd-current/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-current/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-current/usr.bin/mdo/ |
H A D | mdo.c | 28 struct passwd *pw; local 48 if ((pw = getpwnam(username)) == NULL) { 54 pw = getpwuid(uid); 56 if (pw == NULL) 60 if (initgroups(pw->pw_name, pw->pw_gid) == -1) 62 if (setgid(pw->pw_gid) == -1) 65 if (setuid(pw->pw_uid) == -1)
|
/freebsd-current/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);
|