Searched defs:pw (Results 1 - 25 of 172) sorted by relevance

1234567

/illumos-gate/usr/src/lib/libbc/libc/stdio/common/
H A Dcuserid.c40 register struct passwd *pw; local
48 pw = getpwuid(getuid());
50 if (pw != NULL)
51 return (strcpy(s, pw->pw_name));
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dpname_to_uid.c63 struct passwd *pw; local
86 if (pw = getpwnam(lname))
88 *uidOut = pw->pw_uid;
H A Dimport_name.c65 struct passwd *pw; local
157 if (k5_getpwuid_r(uid, &pwx, pwbuf, sizeof(pwbuf), &pw) == 0)
158 stringrep = pw->pw_name;
H A Dacquire_cred_with_pw.c123 char *pw; local
129 pw = strdup("");
131 pw = strdup(password->value);
133 pw = malloc(password->length + 1);
134 if (pw == NULL) {
138 *pw = '\0';
139 (void) strlcat(pw, password->value, password->length + 1);
142 if (pw == NULL) {
149 code = krb5_get_init_creds_password(context, &creds, desired_name, pw,
191 if (pw)
[all...]
/illumos-gate/usr/src/lib/libnsl/yp/
H A Dyppasswd_xdr.c35 xdr_passwd(XDR *xdrsp, struct passwd *pw) argument
37 if (!xdr_wrapstring(xdrsp, &pw->pw_name))
39 if (!xdr_wrapstring(xdrsp, &pw->pw_passwd))
41 if (!xdr_int(xdrsp, (int *)&pw->pw_uid))
43 if (!xdr_int(xdrsp, (int *)&pw->pw_gid))
45 if (!xdr_wrapstring(xdrsp, &pw->pw_gecos))
47 if (!xdr_wrapstring(xdrsp, &pw->pw_dir))
49 return (xdr_wrapstring(xdrsp, &pw->pw_shell));
/illumos-gate/usr/src/lib/libbc/libc/compat/4.1/
H A Dgetpw.c34 struct passwd *pw; local
37 pw = getpwuid(uid);
38 if(pw == 0)
40 strcpy(buf, pw->pw_name);
42 strcat(buf, pw->pw_passwd);
44 sprintf(numbuf, "%d", pw->pw_uid);
47 sprintf(numbuf, "%d", pw->pw_gid);
50 strcat(buf, pw->pw_gecos);
52 strcat(buf, pw->pw_dir);
54 strcat(buf, pw
[all...]
/illumos-gate/usr/src/lib/libbc/libc/compat/sys5/
H A Dgetpw.c34 struct passwd *pw; local
37 pw = getpwuid(uid);
38 if(pw == 0)
40 strcpy(buf, pw->pw_name);
42 strcat(buf, pw->pw_passwd);
43 if (*pw->pw_age != '\0') {
45 strcat(buf, pw->pw_age);
48 sprintf(numbuf, "%d", pw->pw_uid);
51 sprintf(numbuf, "%d", pw->pw_gid);
54 strcat(buf, pw
[all...]
/illumos-gate/usr/src/cmd/ypcmd/yppasswd/
H A Dyppasswdxdr.c36 xdr_passwd(XDR *xdrs, struct passwd *pw) argument
38 if (!xdr_wrapstring(xdrs, &pw->pw_name)) {
41 if (!xdr_wrapstring(xdrs, &pw->pw_passwd)) {
44 if (!xdr_uid_t(xdrs, &pw->pw_uid)) {
47 if (!xdr_gid_t(xdrs, (&pw->pw_gid))) {
50 if (!xdr_wrapstring(xdrs, &pw->pw_gecos)) {
53 if (!xdr_wrapstring(xdrs, &pw->pw_dir)) {
56 if (!xdr_wrapstring(xdrs, &pw->pw_shell)) {
/illumos-gate/usr/src/cmd/mailx/
H A Dgetname.c59 struct passwd *pw; local
66 pw = getpwuid(uid);
67 if (pw) {
68 strcpy(namebuf, pw->pw_name);
82 struct passwd *pw; local
89 pw = getpwnam(name);
90 return pw ? pw->pw_uid : (uid_t)-1;
/illumos-gate/usr/src/cmd/lms/tools/
H A Ddaemonize.cpp72 struct passwd *pw = getpwnam(RUN_AS_USER); local
73 if (pw) {
75 setuid(pw->pw_uid);
/illumos-gate/usr/src/lib/libc/port/stdio/
H A Dcuserid.c47 struct passwd *pw; local
64 } else if ((pw = getpwuid_r(getuid(), &pwd, buffer, BUFSIZ)) != NULL) {
65 (void) strlcpy(s, pw->pw_name, L_cuserid);
/illumos-gate/usr/src/cmd/sendmail/aux/
H A Dmailq.c42 struct passwd *pw = getpwuid(getuid()); local
46 if (pw && chkauthattr(MAILQ_AUTH, pw->pw_name)) {
/illumos-gate/usr/src/lib/libm/common/R/
H A Dnextafterf.c37 int *pw = (int *) &w; local
63 pw[0] = iz;
/illumos-gate/usr/src/cmd/roles/
H A Droles.c76 register struct passwd *pw; local
80 if ((pw = getpwuid(getuid())) == NULL) {
85 username = pw->pw_name;
/illumos-gate/usr/src/cmd/fs.d/smbclnt/test/
H A Dtconn.c63 char *pw = NULL; local
81 pw = optarg;
95 if (pw != NULL && (dom == NULL || usr == NULL)) {
121 if (pw)
122 smb_ctx_setpassword(ctx, pw, NULL);
/illumos-gate/usr/src/cmd/groups/
H A Dgroups.c65 struct passwd *pw; local
80 if ((pw = getpwuid(getuid())) == NULL) {
84 showgroups(pw);
88 if ((pw = getpwnam(*argv)) == NULL) {
95 showgroups(pw);
104 showgroups(struct passwd *pw) argument
120 groups[0] = pw->pw_gid;
122 ngroups = _getgroupsbymember(pw->pw_name, groups, ngroups_max, 1);
127 (void) printf("%d", (int)pw->pw_gid);
/illumos-gate/usr/src/ucbcmd/groups/
H A Dgroups.c74 struct passwd *pw; local
79 if ((pw = getpwnam(user)) == NULL) {
86 if (pw->pw_gid == gr->gr_gid) {
/illumos-gate/usr/src/lib/libast/common/string/
H A Dfmtuid.c64 register struct passwd* pw; local
78 if (pw = getpwuid(uid))
80 name = pw->pw_name;
H A Dstrgid.c74 register struct passwd* pw; local
90 else if (pw = getpwnam(name))
91 id = pw->pw_gid;
105 else if (pw = getpwnam("Administrator"))
106 id = pw->pw_gid;
H A Dstruid.c68 register struct passwd* pw; local
82 if (pw = getpwnam(name))
83 id = pw->pw_uid;
93 else if (streq(name, "root") && (pw = getpwnam("Administrator")))
94 id = pw->pw_uid;
/illumos-gate/usr/src/lib/pam_modules/sample/
H A Dsample_acct_mgmt.c80 struct passwd *pw; local
83 pw = getpwuid(uid);
84 if (pw == NULL)
86 user = pw->pw_name;
/illumos-gate/usr/src/lib/pam_modules/smbfs/
H A Dsmbfs_login.c61 char *pw; local
100 (void) pam_get_item(pamh, PAM_AUTHTOK, (void **)&pw);
101 if (pw == NULL) {
118 res = smbfs_keychain_add(uid, dom, user, pw);
/illumos-gate/usr/src/cmd/hal/hald/
H A Dutil_helper.c98 struct passwd *pw = NULL; local
102 pw = getpwnam (HAL_USER);
103 if (!pw) {
127 if (setuid (pw->pw_uid)) {
/illumos-gate/usr/src/cmd/krb5/kadmin/kpasswd/
H A Dkpasswd.c75 * 4 new passwd mismatch or error trying to change pw
111 struct passwd *pw = 0; local
170 pw = getpwuid( getuid());
171 if (pw == NULL) {
175 princ_str = strdup(pw->pw_name);
/illumos-gate/usr/src/lib/passwdutil/
H A Dnss_attr.c222 struct passwd *pw; local
231 pw = pwbuf->pwd;
237 if ((w->data.val_s = strdup(pw->pw_name)) == NULL)
241 if ((w->data.val_s = strdup(pw->pw_comment)) == NULL)
245 if ((w->data.val_s = strdup(pw->pw_gecos)) == NULL)
249 if ((w->data.val_s = strdup(pw->pw_dir)) == NULL)
253 if ((w->data.val_s = strdup(pw->pw_shell)) == NULL)
266 if ((w->data.val_s = strdup(pw->pw_age)) == NULL)
276 w->data.val_i = pw->pw_uid;
279 w->data.val_i = pw
[all...]

Completed in 193 milliseconds

1234567