Searched refs:pw (Results 126 - 150 of 291) sorted by relevance

1234567891011>>

/freebsd-11-stable/contrib/pam_modules/pam_passwdqc/
H A Dpasswdqc_check.c277 const char *newpass, const char *oldpass, struct passwd *pw)
325 if (pw) {
326 u_name = unify(pw->pw_name);
327 u_gecos = unify(pw->pw_gecos);
333 (pw && (!u_name || !u_gecos)))
342 if (!reason && pw &&
276 _passwdqc_check(passwdqc_params_t *params, const char *newpass, const char *oldpass, struct passwd *pw) argument
/freebsd-11-stable/usr.bin/uudecode/
H A Duudecode.c182 struct passwd *pw; local
224 pw = NULL;
229 pw = getpwnam(q + 1);
232 if (pw != NULL) {
233 n = strlen(pw->pw_dir);
244 q = memcpy(p - n, pw->pw_dir, n);
/freebsd-11-stable/libexec/ftpd/
H A Dftpd.c116 struct passwd *pw; variable in typeref:struct:passwd
986 * Sets global passwd pointer pw if named account exists and is acceptable;
989 * _PATH_FTPUSERS, and ftp account exists, set guest and pw, then just return.
1014 pw = sgetpwnam(thishost->anonuser);
1016 pw = sgetpwnam("ftp");
1025 else if (pw != NULL) {
1042 if ((pw = sgetpwnam(name))) {
1043 if ((shell = pw->pw_shell) == NULL || *shell == 0)
1059 pw = NULL;
1071 pwok = (pw !
[all...]
/freebsd-11-stable/contrib/groff/src/devices/grolj4/
H A Dlj4.cpp564 double pw; local
566 pw = (size * (line_width_factor * 25.4))/(font::sizescale * 72000.0);
568 pw = line_thickness*25.4/font::res;
569 if (dot && pw < MIN_DOT_PEN_WIDTH)
570 pw = MIN_DOT_PEN_WIDTH;
571 if (pw != pen_width) {
572 printf("PW%f", pw);
573 pen_width = pw;
/freebsd-11-stable/contrib/telnet/libtelnet/
H A Dsra.c447 if (pw = sgetpwnam(name)) {
448 if (pw->pw_shell == NULL) {
449 pw = (struct passwd *) NULL;
453 salt = pw->pw_passwd;
456 if (pw == NULL || *pw->pw_passwd == '\0' ||
457 strcmp(xpasswd, pw->pw_passwd)) {
458 pw = (struct passwd *) NULL;
/freebsd-11-stable/crypto/heimdal/lib/gssapi/mech/
H A Dgss_pname_to_uid.c80 struct passwd pw, *pwd;
110 if (getpwnam_r(localname, &pw, pwbuf, sizeof(pwbuf), &pwd) != 0)
/freebsd-11-stable/sbin/devfs/
H A Drule.c316 struct passwd *pw; local
378 pw = getpwnam(av[1]);
379 if (pw != NULL)
380 dr->dr_uid = pw->pw_uid;
426 struct passwd *pw; local
445 pw = getpwuid(dr->dr_uid);
446 if (pw == NULL)
449 fprintf(fp, " user %s", pw->pw_name);
/freebsd-11-stable/usr.sbin/fmtree/
H A Dcreate.c149 struct passwd *pw; local
177 pw = getpwuid(p->fts_statp->st_uid);
178 if (pw != NULL)
179 output(indent, &offset, "uname=%s", pw->pw_name);
292 struct passwd *pw; local
363 pw = getpwuid(saveuid);
364 if (pw != NULL)
365 (void)printf(" uname=%s", pw->pw_name);
/freebsd-11-stable/contrib/wpa/hs20/client/
H A Dosu_client.h69 const char *alt_loc, char **user, char **pw);
117 const char *user, const char *pw);
/freebsd-11-stable/crypto/openssh/
H A Dauth2.c241 authctxt->pw = PRIVSEP(getpwnamallow(user));
243 if (authctxt->pw && strcmp(service, "ssh-connection")==0) {
249 authctxt->pw = fakepw();
277 if (authctxt->pw != NULL &&
278 (lc = login_getpwclass(authctxt->pw)) != NULL) {
283 authctxt->pw->pw_name, from_host, from_ip);
288 authctxt->pw->pw_name, from_host);
336 if (authenticated && authctxt->pw->pw_uid == 0 &&
H A Dmisc.c207 pwcopy(struct passwd *pw) argument
211 copy->pw_name = xstrdup(pw->pw_name);
212 copy->pw_passwd = xstrdup(pw->pw_passwd);
214 copy->pw_gecos = xstrdup(pw->pw_gecos);
216 copy->pw_uid = pw->pw_uid;
217 copy->pw_gid = pw->pw_gid;
219 copy->pw_expire = pw->pw_expire;
222 copy->pw_change = pw->pw_change;
225 copy->pw_class = xstrdup(pw->pw_class);
227 copy->pw_dir = xstrdup(pw
592 struct passwd *pw; local
[all...]
/freebsd-11-stable/contrib/sendmail/makemap/
H A Dmakemap.c149 struct passwd *pw; local
152 pw = getpwnam(b);
153 if (pw == NULL)
158 TrustedUid = pw->pw_uid;
279 struct passwd *pw; local
303 pw = getpwuid(RealUid);
304 if (pw != NULL)
305 (void) sm_strlcpy(rnamebuf, pw->pw_name, sizeof rnamebuf);
/freebsd-11-stable/crypto/heimdal/appl/ftp/ftpd/
H A Dftpd.c65 struct passwd *pw; variable in typeref:struct:passwd
478 * Sets global passwd pointer pw if named account exists and is acceptable;
481 * _PATH_FTPUSERS, and ftp account exists, set guest and pw, then just return.
514 else if ((pw = sgetpwnam("ftp")) != NULL) {
540 if ((pw = sgetpwnam(name))) {
541 if ((shell = pw->pw_shell) == NULL || *shell == 0)
567 pw = (struct passwd *) NULL;
702 if (setegid((gid_t)pw->pw_gid) < 0) {
706 initgroups(pw->pw_name, pw
[all...]
H A Dextern.h130 extern struct passwd *pw;
/freebsd-11-stable/crypto/openssh/regress/unittests/sshkey/
H A Dtest_file.c46 struct sshbuf *buf, *pw; local
51 pw = load_text_file("pw");
68 (const char *)sshbuf_ptr(pw), &k2, NULL), 0);
123 (const char *)sshbuf_ptr(pw), &k2, NULL), 0);
142 (const char *)sshbuf_ptr(pw), &k2, NULL), 0);
214 (const char *)sshbuf_ptr(pw), &k2, NULL), 0);
233 (const char *)sshbuf_ptr(pw), &k2, NULL), 0);
312 (const char *)sshbuf_ptr(pw), &k2, NULL), 0);
331 (const char *)sshbuf_ptr(pw),
[all...]
/freebsd-11-stable/usr.sbin/ypldap/
H A Dldapclient.c351 struct passwd *pw; local
369 if ((pw = getpwnam(YPLDAP_USER)) == NULL)
374 dns_pid = ypldap_dns(pipe_dns, pw);
378 if (chroot(pw->pw_dir) == -1)
389 if (setgroups(1, &pw->pw_gid) ||
390 setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid) ||
391 setresuid(pw->pw_uid, pw
[all...]
/freebsd-11-stable/contrib/apr-util/crypto/
H A Dapr_md5.c504 APU_DECLARE(apr_status_t) apr_md5_encode(const char *pw, const char *salt,
557 apr_md5_update(&ctx, pw, strlen(pw));
570 * Then just as many characters of the MD5(pw, salt, pw)
576 apr_md5_update(&ctx1, pw, strlen(pw));
578 apr_md5_update(&ctx1, pw, strlen(pw));
580 for (pl = strlen(pw); p
[all...]
/freebsd-11-stable/crypto/heimdal/appl/test/
H A Dgssapi_client.c136 gss_buffer_desc pw; local
138 pw.value = password;
139 pw.length = strlen(password);
143 &pw,
/freebsd-11-stable/crypto/openssh/openbsd-compat/
H A Dport-solaris.c208 solaris_set_default_project(struct passwd *pw) argument
215 if ((defaultproject = getdefaultproj(pw->pw_name, &tempproject, &buf,
218 if (setproject(defaultproject->pj_name, pw->pw_name,
224 debug("getdefaultproj(%s): %s", pw->pw_name, strerror(errno));
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/c063/
H A Dt_fchownat.c58 struct passwd *pw; local
60 if ((pw = getpwnam(USER)) == NULL)
63 *uid = pw->pw_uid;
64 *gid = pw->pw_gid;
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/sys/
H A Dt_chroot.c267 struct passwd *pw; local
274 pw = getpwnam("nobody");
278 ATF_REQUIRE(pw != NULL);
285 (void)setuid(pw->pw_uid);
H A Dt_msgsnd.c293 struct passwd *pw; local
298 pw = getpwnam("nobody");
302 ATF_REQUIRE(pw != NULL);
304 uid = pw->pw_uid;
/freebsd-11-stable/usr.bin/rsh/
H A Drsh.c94 struct passwd const *pw; local
177 if (!(pw = getpwuid(uid = getuid())))
180 user = pw->pw_name;
194 rem = rcmd_af(&host, sp->s_port, pw->pw_name, user, args, &rfd2,
/freebsd-11-stable/stand/libsa/geli/
H A Dgeliboot.h80 int geli_passphrase(struct geli_dev *gdev, char *pw);
/freebsd-11-stable/usr.sbin/gssd/
H A Dgssd.c727 struct passwd pwd, *pw; local
741 pw = NULL;
748 &pw);
757 if (pw) {
760 result->gid = pw->pw_gid;
761 getgrouplist(pw->pw_name, pw->pw_gid,
1086 struct passwd *pw; local
1091 pw = getpwuid(uid);
1148 if (pw !
1246 struct passwd *pw; local
[all...]

Completed in 241 milliseconds

1234567891011>>