/illumos-gate/usr/src/cmd/krb5/kadmin/cli/ |
H A D | kadmin.c | 205 struct passwd *pw; local 466 } else if ((pw = getpwuid(getuid()))) { 467 princstr = (char *) malloc(strlen(pw->pw_name) + 7 /* "/admin@" */ 475 strcpy(princstr, pw->pw_name); 751 if (!strcmp("-pw", *argv)) { 907 "[-e keysaltlist] [-pw password] %s\n", 1094 !strcmp("-pw", argv[i])) { 1165 "[-randkey] [-pw password]\n\t\t[-maxrenewlife maxrenewlife] " 1474 "modify_principal: -pw %s change_password\n",
|
/illumos-gate/usr/src/cmd/krb5/kinit/ |
H A D | kinit.c | 83 struct passwd *pw; local 84 if ((pw = getpwuid((int) getuid()))) 85 return pw->pw_name;
|
/illumos-gate/usr/src/ucbcmd/ls/ |
H A D | ls.c | 813 struct passwd *pw; local 817 if ((pw = getpwuid(uid)) != NULL) { 818 (void) SCPYN(&c->name[0], pw->pw_name);
|
/illumos-gate/usr/src/ucbcmd/shutdown/ |
H A D | shutdown.c | 200 struct passwd *pw, *getpwuid(); local 218 if (shutter == 0 && (pw = getpwuid(getuid()))) 219 shutter = pw->pw_name;
|
/illumos-gate/usr/src/lib/krb5/kadm5/srv/ |
H A D | svr_principal.c | 1100 * pw (r) keys for the password to add to adb's key history 1105 * pw contains n_key_data keys in its key_data, in storage should be 1120 osa_pw_hist_ent *pw) 1209 /* free the old pw history entry if it contains data */ 1216 adb->old_keys[knext] = *pw; 1814 * Should we be checking/updating pw history here? 2045 * Should we be checking/updating pw history here? 1117 add_to_history(krb5_context context, osa_princ_ent_t adb, kadm5_policy_ent_t pol, osa_pw_hist_ent *pw) argument
|
/illumos-gate/usr/src/cmd/logins/ |
H A D | logins.c | 94 #define isauserlogin(pw) (pw->pw_uid > MAXSYSTEMLOGIN) 95 #define isasystemlogin(pw) (pw->pw_uid <= MAXSYSTEMLOGIN) 1095 struct passwd pw; member in struct:localpw 1106 fill_localpw(struct localpw *lpw, struct passwd *pw) { argument 1112 lpw->pw.pw_name = strdup(pw->pw_name); 1113 lpw->pw.pw_passwd = strdup(pw 1131 struct passwd *pw; local [all...] |
/illumos-gate/usr/src/cmd/lp/filter/postscript/dpost/ |
H A D | dpost.c | 2278 char *pw; /* font widthtab and */ local 2317 pw = widthtab[font]; 2323 pw = widthtab[k]; 2331 lastw = widthfac * (((pw[i] & BMASK) * pstab[size-1] + unitwidth/2) / unitwidth);
|
/illumos-gate/usr/src/cmd/lp/lib/papi/ |
H A D | job.c | 215 struct passwd *pw = NULL; local 218 if ((pw = getpwuid(uid)) != NULL) 219 user = pw->pw_name; /* use the process owner */
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_pwdutil.c | 614 smb_passwd_t *pw; local 631 pw = pwbuf->pw_pwd; 632 bzero(pw, sizeof (smb_passwd_t)); 633 pw->pw_uid = strtoul(argv[SMB_PWD_UID], 0, 10); 634 (void) strlcpy(pw->pw_name, argv[SMB_PWD_NAME], sizeof (pw->pw_name)); 637 pw->pw_flags |= SMB_PWF_DISABLE; 639 (void) strcpy((char *)pw->pw_lmhash, SMB_PWD_DISABLE); 640 (void) strcpy((char *)pw->pw_nthash, SMB_PWD_DISABLE); 651 (char *)pw 729 smb_passwd_t *pw = pwbuf->pw_pwd; local [all...] |
/illumos-gate/usr/src/cmd/cron/ |
H A D | at.c | 746 struct passwd *pw; local 748 pw = getpwuid(user); 749 if (pw == NULL) { 765 (!cron_admin(pw->pw_name))) { 770 if (cron_admin(pw->pw_name)) { 799 struct passwd *pw; local 853 ((pw = getpwuid(buf.st_uid)) != NULL)) { 857 pw->pw_name, dentry->d_name,
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | watchpoint.c | 600 struct lwp_watch *pw = &lwp->lwp_watch[rw_to_index(rw)]; local 608 if (rw == S_READ && pw->wpaddr != NULL && 609 !(pw->wpaddr <= vaddr && vaddr < pw->wpaddr + pw->wpsize)) { 611 pw++; /* use the extra S_READ struct */ 614 if (pw->wpaddr != NULL) { 616 ASSERT(pw->wpaddr <= vaddr && vaddr < pw->wpaddr + pw 646 struct lwp_watch *pw = lwp->lwp_watch; local [all...] |
/illumos-gate/usr/src/cmd/halt/ |
H A D | halt.c | 1461 struct passwd *pw; local 1465 if (user == NULL && (pw = getpwuid(getuid())) != NULL) 1466 user = pw->pw_name;
|
/illumos-gate/usr/src/lib/libshell/common/sh/ |
H A D | init.c | 1258 struct passwd *pw = getpwuid(shp->userid); local 1259 if(pw) 1260 shp->user = strdup(pw->pw_name);
|
H A D | macro.c | 2484 register struct passwd *pw; local 2505 if(!(pw = getpwnam(string))) 2510 nv_putval(np, pw->pw_dir,0); 2511 return(pw->pw_dir);
|
/illumos-gate/usr/src/lib/libinetsvc/common/ |
H A D | inetsvc.c | 958 struct passwd pw; local 960 if (getpwnam_r(prop[PT_USER_INDEX].ip_value.iv_string, &pw, 966 (getpwuid_r(uidl, &pw, pw_buf,
|
/illumos-gate/usr/src/cmd/zlogin/ |
H A D | zlogin.c | 1250 struct passwd *pw = NULL; local 1261 pw = zone_get_user_pw(user_cmd, &pwent, pwbuf, sizeof (pwbuf)); 1275 if (pw != NULL) 1295 if (pw != NULL) { 1296 if ((estr = add_env("LOGNAME", pw->pw_name)) == NULL) 1300 if ((estr = add_env("HOME", pw->pw_dir)) == NULL) 1304 if (chdir(pw->pw_dir) != 0) 1306 "%s: %s"), pw->pw_dir, strerror(errno)); 1309 pw->pw_name); 1319 if (pw ! [all...] |
/illumos-gate/usr/src/cmd/praudit/ |
H A D | format.c | 2017 struct passwd *pw; local 2025 if ((pw = getpwuid(uid)) == NULL) { 2030 uval.string_val = pw->pw_name;
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | main.c | 301 struct passwd *pw; local 534 pw = getpwuid(uid); 535 if (pw != NULL && pw->pw_name != NULL) 536 p = pw->pw_name;
|
H A D | options.c | 568 struct passwd *pw; local 571 pw = getpwuid(getuid()); 572 if (pw == NULL || (user = pw->pw_dir) == NULL || user[0] == '\0')
|
H A D | auth.c | 1268 struct passwd *pw = NULL; local 1333 pw = getpwnam(user); 1336 if (pw == NULL) 1353 pw->pw_passwd = spwd->sp_pwdp; 1360 if (pw->pw_passwd == NULL || strlen(pw->pw_passwd) < 2 || 1361 strcmp(crypt(passwd, pw->pw_passwd), pw->pw_passwd) != 0) 1375 if (!use_pam && pw != (struct passwd *)NULL) { 1380 (void)lseek(fd, (off_t)(pw 2157 struct passwd *pw; local [all...] |
/illumos-gate/usr/src/cmd/dfs.cmds/sharemgr/ |
H A D | commands.c | 355 struct passwd *pw = NULL; local 358 pw = getpwuid(uid); 359 if (pw == NULL) { 394 if (chkauthattr(authstr, pw->pw_name)) {
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | main.c | 107 char *Mbdb = "pw"; /* mailbox database defaults to /etc/passwd */ 178 struct passwd *pw; local 542 pw = sm_getpwuid(RealUid); 543 if (pw != NULL) 544 (void) sm_strlcpy(rnamebuf, pw->pw_name, sizeof(rnamebuf));
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ |
H A D | finger.c | 268 struct passwd *pw; local 298 if (unquick && (pw = getpwnam(name))) { 299 p->pwd = pwdcopy(pw); 324 struct passwd *pw; local 358 if ((pw = getpwnam(p->name)) != NULL) 359 p->pwd = pwdcopy(pw); 362 while ((pw = getpwent()) != NULL) { 366 if (strcmp(p->name, pw->pw_name) != 0 && 367 !matchcmp(pw->pw_gecos, pw [all...] |
/illumos-gate/usr/src/tools/codereview/ |
H A D | lwlp.c | 1418 struct passwd *pw; local 1421 if ((pw = getpwuid(getuid())) == (struct passwd *)NULL) 1424 p = pw->pw_name;
|
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | srvsvc_svc.c | 2685 struct passwd pw; local 2691 if (getpwuid_r(user->ui_posix_uid, &pw, buf, sizeof (buf)) == 2695 username = pw.pw_name;
|