Searched refs:pw (Results 1 - 25 of 291) sorted by relevance

1234567891011>>

/freebsd-11-stable/crypto/openssh/openbsd-compat/
H A Dport-uw.h28 char * get_iaf_password(struct passwd *pw);
H A Dport-irix.h33 void irix_setusercontext(struct passwd *pw);
H A Dport-irix.c47 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 Dport-uw.c56 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 Dgetname.c50 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 Dcrypt.h35 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 Dverify.c48 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 Dpw_copy.c62 /* 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 Dlocal_passwd.c76 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 Dpw_scan.c87 __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 Dfield.c66 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 Dchpass.c82 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 Dedit.c68 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 Did.c78 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 Duserinfo.c36 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 Dcrypt_tests.c22 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 DMakefile3 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 Duidswap.c60 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 Dplatform.c98 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 Dauth-rhosts.c190 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 Drandom_password.c50 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 Dulog-helper.c52 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 Dt_ptrace_wait.c215 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 Dsandbox.c70 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 Dmain.c75 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,

Completed in 198 milliseconds

1234567891011>>