Searched refs:pw (Results 1 - 25 of 242) sorted by last modified time

12345678910

/freebsd-9.3-release/contrib/tzcode/zic/
H A Dzic.c2734 struct passwd *pw; local
2739 pw = getpwnam(name);
2740 if (pw == 0) {
2751 *flag = pw->pw_uid;
/freebsd-9.3-release/contrib/ntp/ntpd/
H A Dntpd.c187 struct passwd *pw; variable in typeref:struct:passwd
973 if ((pw = getpwuid(sw_uid)) != NULL) {
975 user = estrdup(pw->pw_name);
976 sw_gid = pw->pw_gid;
986 if ((pw = getpwnam(user)) != NULL) {
987 sw_uid = pw->pw_uid;
988 sw_gid = pw->pw_gid;
1064 else if (pw)
1065 if (0 != initgroups(pw->pw_name, pw
[all...]
/freebsd-9.3-release/crypto/openssh/
H A Dsession.c172 auth_sock_cleanup_proc(struct passwd *pw) argument
175 temporarily_use_uid(pw);
184 auth_input_request_forwarding(struct passwd * pw) argument
196 temporarily_use_uid(pw);
279 setproctitle("%s", authctxt->pw->pw_name);
334 s->pw = authctxt->pw;
408 success = auth_input_request_forwarding(s->pw);
421 if (channel_input_port_forward_request(s->pw->pw_uid == 0,
603 cray_init_job(s->pw); /* se
902 struct passwd * pw = s->pw; local
979 struct passwd *pw = s->pw; local
1186 struct passwd *pw = s->pw; local
1455 do_nologin(struct passwd *pw) argument
1543 do_setusercontext(struct passwd *pw) argument
1641 launch_login(struct passwd *pw, const char *hostname) argument
1712 struct passwd *pw = s->pw; local
[all...]
H A Dreadconf.c484 match_cfg_line(Options *options, char **condition, struct passwd *pw, argument
498 ruser = options->user == NULL ? pw->pw_name : options->user;
547 if (match_pattern_list(pw->pw_name, arg, len, 0) != 1)
552 filename, linenum, pw->pw_name);
562 "d", pw->pw_dir,
568 "u", pw->pw_name,
727 process_config_line(Options *options, struct passwd *pw, const char *host, argument
1204 value = match_cfg_line(options, &s, pw, host,
1514 read_config_file(const char *filename, struct passwd *pw, const char *host, argument
1546 if (process_config_line(options, pw, hos
[all...]
H A Dmonitor.c395 if (authctxt->pw->pw_uid == 0 &&
752 authctxt->pw = fakepw();
757 authctxt->pw = pwent;
975 skey_haskey(authctxt->pw->pw_name) == 0 &&
976 skey_passcheck(authctxt->pw->pw_name, response) != -1);
1154 user_key_allowed(authctxt->pw, key);
1162 hostbased_key_allowed(authctxt->pw,
1172 auth_rhosts_rsa_key_allowed(authctxt->pw,
1396 mm_record_login(Session *s, struct passwd *pw) argument
1415 record_login(s->pid, s->tty, pw
[all...]
H A Dmonitor_wrap.c237 struct passwd *pw; local
252 pw = NULL;
255 pw = buffer_get_string(&m, &len);
258 pw->pw_name = buffer_get_string(&m, NULL);
259 pw->pw_passwd = buffer_get_string(&m, NULL);
261 pw->pw_gecos = buffer_get_string(&m, NULL);
264 pw->pw_class = buffer_get_string(&m, NULL);
266 pw->pw_dir = buffer_get_string(&m, NULL);
267 pw->pw_shell = buffer_get_string(&m, NULL);
293 return (pw);
365 mm_user_key_allowed(struct passwd *pw, Key *key) argument
371 mm_hostbased_key_allowed(struct passwd *pw, char *user, char *host, Key *key) argument
378 mm_auth_rhosts_rsa_key_allowed(struct passwd *pw, char *user, char *host, Key *key) argument
1081 mm_auth_rsa_key_allowed(struct passwd *pw, BIGNUM *client_n, Key **rkey) argument
[all...]
H A Dsshconnect.c1299 struct sockaddr *hostaddr, u_short port, struct passwd *pw, int timeout_ms)
1304 local_user = xstrdup(pw->pw_name);
1298 ssh_login(Sensitive *sensitive, const char *orighost, struct sockaddr *hostaddr, u_short port, struct passwd *pw, int timeout_ms) argument
/freebsd-9.3-release/bin/pax/
H A Dcache.c175 struct passwd *pw; local
204 if ((pw = getpwuid(uid)) == NULL) {
226 return(pw->pw_name);
228 (void)strncpy(ptr->name, pw->pw_name, UNMLEN - 1);
316 struct passwd *pw; local
354 if ((pw = getpwnam(name)) == NULL)
356 *uid = pw->pw_uid;
361 if ((pw = getpwnam(name)) == NULL) {
366 *uid = ptr->uid = pw->pw_uid;
H A Dsel_subs.c107 struct passwd *pw; local
130 if ((pw = getpwnam(str)) == NULL) {
134 uid = (uid_t)pw->pw_uid;
/freebsd-9.3-release/bin/pkill/
H A Dpkill.c666 struct passwd *pw; local
730 if ((pw = getpwnam(sp)) == NULL)
732 li->li_number = pw->pw_uid;
/freebsd-9.3-release/bin/sh/
H A Dexpand.c315 struct passwd *pw; local
345 if ((pw = getpwnam(startp+1)) == NULL)
347 home = pw->pw_dir;
/freebsd-9.3-release/bin/getfacl/
H A Dgetfacl.c63 struct passwd *pw; local
66 if ((pw = getpwuid(uid)) == NULL) {
70 return (pw->pw_name);
/freebsd-9.3-release/cddl/contrib/opensolaris/lib/libzfs/common/
H A Dlibzfs_dataset.c2662 struct passwd *pw; local
2663 pw = getpwnam(cp);
2664 if (pw == NULL)
2666 *ridp = pw->pw_uid;
/freebsd-9.3-release/lib/librpcsvc/
H A Dxcrypt.c124 passwd2des(char *pw, char *key) argument
129 for (i = 0; *pw; i = (i+1)%8) {
130 key[i] ^= *pw++ << 1;
/freebsd-9.3-release/lib/libcrypt/
H A Dcrypt-md5.c45 crypt_md5(const char *pw, const char *salt) argument
73 MD5Update(&ctx, (const u_char *)pw, strlen(pw));
81 /* Then just as many characters of the MD5(pw,salt,pw) */
83 MD5Update(&ctx1, (const u_char *)pw, strlen(pw));
85 MD5Update(&ctx1, (const u_char *)pw, strlen(pw));
87 for(pl = (int)strlen(pw); p
[all...]
H A Dcrypt-nthash.c45 * NT HASH = md4(str2unicode(pw))
50 crypt_nthash(const char *pw, const char *salt __unused) argument
66 for (s = pw; unipwLen < sizeof(unipw) / 2 && *s; s++)
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-9.3-release/lib/libpam/modules/pam_rhosts/
H A Dpam_rhosts.c56 struct passwd *pw; local
65 if ((pw = getpwnam(user)) == NULL)
67 if (pw->pw_uid == 0 &&
/freebsd-9.3-release/lib/librpcsec_gss/
H A Dsvc_rpcsec_gss.c567 struct passwd pwd, *pw; local
579 getpwuid_r(uid, &pwd, buf, sizeof(buf), &pw);
580 if (pw) {
582 uc->uid = pw->pw_uid;
583 uc->gid = pw->pw_gid;
585 getgrouplist(pw->pw_name, pw->pw_gid, uc->gidlist, &len);
/freebsd-9.3-release/lib/libc/net/
H A Drcmdsh.c70 struct passwd *pw; local
79 if ((pw = getpwnam(locuser)) == NULL) {
135 if (setuid(pw->pw_uid) == -1) {
137 pw->pw_uid, strerror(errno));
147 if (pw->pw_shell[0] == '\0')
150 rshprog = pw->pw_shell;
/freebsd-9.3-release/lib/libc/gen/
H A Dpw_scan.c71 __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-9.3-release/lib/libncp/
H A Dncpl_conn.c313 struct passwd *pw; local
359 pw = getpwnam(p);
360 if (pw) {
361 li->owner = pw->pw_uid;
/freebsd-9.3-release/lib/libutil/
H A Dpw_util.c401 pw_make(const struct passwd *pw) argument
405 asprintf(&line, "%s:%s:%ju:%ju:%s:%ju:%ju:%s:%s:%s", pw->pw_name,
406 pw->pw_passwd, (uintmax_t)pw->pw_uid, (uintmax_t)pw->pw_gid,
407 pw->pw_class, (uintmax_t)pw->pw_change, (uintmax_t)pw->pw_expire,
408 pw->pw_gecos, pw
416 pw_make_v7(const struct passwd *pw) argument
431 pw_copy(int ffd, int tfd, const struct passwd *pw, struct passwd *old_pw) argument
596 pw_dup(const struct passwd *pw) argument
654 struct passwd pw, *ret; local
[all...]
/freebsd-9.3-release/usr.sbin/
H A DMakefile66 pw \
/freebsd-9.3-release/usr.sbin/daemon/
H A Ddaemon.c227 struct passwd *pw = NULL; local
229 pw = getpwnam(user);
230 if (pw == NULL)
233 if (setusercontext(NULL, pw, pw->pw_uid, LOGIN_SETALL) != 0)

Completed in 180 milliseconds

12345678910