Home
last modified time | relevance | path

Searched refs:pw (Results 126 – 150 of 182) sorted by relevance

12345678

/dragonfly/crypto/openssh/
H A Dsession.h35 struct passwd *pw; member
H A Dauth-pam.c294 if (setreuid(sshpam_authctxt->pw->pw_uid, -1) == -1) in sshpam_chauthtok_ruid()
913 (sshpam_authctxt->pw->pw_uid == 0 && in sshpam_query()
993 (sshpam_authctxt->pw->pw_uid != 0 || in sshpam_respond()
1355 if (!authctxt->valid || (authctxt->pw->pw_uid == 0 && in sshpam_auth_passwd()
/dragonfly/usr.sbin/mtree/
H A Dcreate.c101 struct passwd *pw; in cwalk() local
102 user = (pw = getpwuid(getuid())) != NULL ? pw->pw_name : in cwalk()
/dragonfly/crypto/libressl/apps/nc/
H A Dsocks.c114 char *pw, size_t pwlen) in getproxypass() argument
120 if (readpassphrase(prompt, pw, pwlen, RPP_REQUIRE_TTY) == NULL) in getproxypass()
/dragonfly/usr.bin/calendar/
H A Dio.c707 struct passwd *pw = getpwuid(uid); in write_mailheader() local
724 pw->pw_name, pw->pw_name, dayname); in write_mailheader()
/dragonfly/sbin/mount_ufs/
H A Dmount.c465 struct passwd *pw; in prmount() local
485 if ((pw = getpwuid(sfp->f_owner)) != NULL) in prmount()
486 printf("%s", pw->pw_name); in prmount()
/dragonfly/sbin/vquota/
H A Dvquota.c330 struct passwd *pw; in print_user() local
332 if (flag_resolve_ids && ((pw = getpwuid(uid)) != NULL)) { in print_user()
333 printf("user %s:", pw->pw_name); in print_user()
/dragonfly/sbin/dhclient/
H A Ddhclient.c276 struct passwd *pw; in main() local
448 if ((pw = getpwnam("_dhcp")) == NULL) in main()
479 if (setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid) == -1) in main()
481 if (setgroups(1, &pw->pw_gid) == -1) in main()
483 if (setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid) == -1) in main()
/dragonfly/bin/sh/
H A Dparser.c1994 struct passwd *pw; in getusername() local
2006 pw = getpwlogin(); in getusername()
2007 if (pw == NULL || pw->pw_uid != euid) in getusername()
2008 pw = getpwuid(euid); in getusername()
2010 if (pw != NULL) { in getusername()
2011 strlcpy(cached_name, pw->pw_name, in getusername()
/dragonfly/sbin/fsck/
H A Dinode.c511 struct passwd *pw; in pinode() local
519 if ((pw = getpwuid((int)dp->di_uid)) != NULL) in pinode()
520 printf("%s ", pw->pw_name); in pinode()
/dragonfly/sbin/mount/
H A Dmount.c508 struct passwd *pw; in prmount() local
528 if ((pw = getpwuid(sfp->f_owner)) != NULL) in prmount()
529 printf("%s", pw->pw_name); in prmount()
/dragonfly/usr.bin/pkill/
H A Dpkill.c672 struct passwd *pw; in makelist() local
736 if ((pw = getpwnam(sp)) == NULL) in makelist()
738 li->li_number = pw->pw_uid; in makelist()
/dragonfly/usr.sbin/lpr/lpr/
H A Dlpr.c118 struct passwd *pw; in main() local
288 if ((pw = getpwuid(userid)) == NULL) in main()
290 lpr_username = pw->pw_name; in main()
/dragonfly/sbin/mountd/
H A Dmountd.c2300 struct passwd *pw; in parsecred() local
2318 pw = getpwuid(atoi(name)); in parsecred()
2320 pw = getpwnam(name); in parsecred()
2325 if (pw == NULL) { in parsecred()
2329 cr->cr_uid = pw->pw_uid; in parsecred()
2331 if (getgrouplist(pw->pw_name, pw->pw_gid, groups, &ngroups)) in parsecred()
2346 if (pw != NULL) in parsecred()
2347 cr->cr_uid = pw->pw_uid; in parsecred()
/dragonfly/usr.bin/top/
H A Dm_dragonfly.c257 struct passwd *pw; in machine_init() local
269 while ((pw = getpwent()) != NULL) { in machine_init()
270 if ((int)strlen(pw->pw_name) > namelength) in machine_init()
271 namelength = strlen(pw->pw_name); in machine_init()
/dragonfly/usr.sbin/
H A DMakefile87 pw \
/dragonfly/usr.sbin/edquota/
H A Dedquota.c291 struct passwd *pw; in getentry() local
298 if ((pw = getpwnam(name))) in getentry()
299 return (pw->pw_uid); in getentry()
/dragonfly/nrelease/root/etc/rc.d/
H A Dpfi168 /usr/sbin/pw usermod root -h 0
/dragonfly/share/installer/
H A Dcmdnames.conf70 PW=usr/sbin/pw
/dragonfly/usr.bin/stat/
H A Dstat.c627 struct passwd *pw; in format1() local
727 if ((pw = getpwuid(st->st_uid)) != NULL) in format1()
728 sdata = pw->pw_name; in format1()
/dragonfly/gnu/usr.bin/rcs/lib/
H A Drcsutil.c368 struct passwd const *pw = getpwuid(ruid()); local
369 if (!pw)
373 name = pw->pw_name;
/dragonfly/contrib/cvs-1.12/src/
H A Dserver.c6525 struct passwd *pw; in switch_to_user() local
6548 pw = getpwnam (username); in switch_to_user()
6549 if (pw == NULL) in switch_to_user()
6559 if (pw->pw_uid == 0) in switch_to_user()
6574 if (initgroups (pw->pw_name, pw->pw_gid) < 0 in switch_to_user()
6619 if (setgid (pw->pw_gid) < 0) in switch_to_user()
6626 pw->pw_gid, getuid(), getgid(), geteuid(), getegid()); in switch_to_user()
6632 if (setuid (pw->pw_uid) < 0) in switch_to_user()
6644 pw->pw_uid, getuid(), getgid(), geteuid(), getegid()); in switch_to_user()
6939 struct passwd *pw; in check_system_password() local
[all …]
/dragonfly/contrib/wpa_supplicant/wpa_supplicant/
H A Dap.h76 const struct wpabuf *pw, const u8 *pubkey_hash);
/dragonfly/contrib/wpa_supplicant/src/ap/
H A Dwps_hostapd.c2044 struct wpabuf *pw; in hostapd_wps_nfc_token_enable() local
2062 pw = hapd->conf->wps_nfc_dev_pw; in hostapd_wps_nfc_token_enable()
2064 wpabuf_len(pw) * 2 + 1); in hostapd_wps_nfc_token_enable()
2068 wpabuf_len(pw) * 2), in hostapd_wps_nfc_token_enable()
2069 wpabuf_len(pw) * 2 + 1, in hostapd_wps_nfc_token_enable()
2070 wpabuf_head(pw), wpabuf_len(pw)); in hostapd_wps_nfc_token_enable()
/dragonfly/contrib/tcsh-6/
H A Dsh.c631 struct passwd *pw; in main() local
642 if ((pw = xgetpwuid(euid)) == NULL) in main()
645 setcopy(STReuser, str2short(pw->pw_name), VAR_READWRITE); in main()
657 else if ((pw = xgetpwuid(uid)) == NULL) in main()
660 setcopy(STRuser, str2short(pw->pw_name), VAR_READWRITE); in main()

12345678