Searched refs:pw_uid (Results 1 - 25 of 184) sorted by relevance

12345678

/netbsd-6-1-5-RELEASE/sys/compat/ibcs2/
H A Dibcs2_pwd.h39 int pw_uid; member in struct:ibcs2_passwd
/netbsd-6-1-5-RELEASE/external/ibm-public/postfix/dist/src/global/
H A Dmypwd.h23 uid_t pw_uid; member in struct:mypasswd
H A Dmypwd.c92 mypwd->pw_uid = pwd->pw_uid;
98 binhash_enter(mypwcache_uid, (char *) &mypwd->pw_uid,
99 sizeof(mypwd->pw_uid), (char *) mypwd);
114 if (last_pwd->pw_uid != uid) {
183 binhash_delete(mypwcache_uid, (char *) &mypwd->pw_uid,
184 sizeof(mypwd->pw_uid), (void (*) (char *)) 0);
/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssh/dist/
H A Duidswap.c59 (u_int)pw->pw_uid, (u_int)pw->pw_gid,
86 if (seteuid(pw->pw_uid) == -1)
87 fatal("seteuid %u: %.100s", (u_int)pw->pw_uid,
126 debug("permanently_set_uid: %u/%u", (u_int)pw->pw_uid,
134 if (setuid(pw->pw_uid) < 0)
135 fatal("setuid %u: %.100s", (u_int)pw->pw_uid, strerror(errno));
136 if (seteuid(pw->pw_uid) < 0)
137 fatal("seteuid %u: %.100s", (u_int)pw->pw_uid, strerror(errno));
147 if (getuid() != pw->pw_uid || geteuid() != pw->pw_uid) {
[all...]
H A Dsshpty.c164 if (st.st_uid != pw->pw_uid || st.st_gid != gid) {
165 if (chown(tty, pw->pw_uid, gid) < 0) {
167 (st.st_uid == pw->pw_uid || st.st_uid == 0))
169 tty, (u_int)pw->pw_uid, (u_int)gid,
173 tty, (u_int)pw->pw_uid, (u_int)gid,
/netbsd-6-1-5-RELEASE/external/bsd/openpam/dist/lib/
H A Dopenpam_borrow_cred.c70 ENTERI(pwd->pw_uid);
77 if (geteuid() != 0 && geteuid() != pwd->pw_uid) {
98 if (geteuid() == pwd->pw_uid)
101 setegid(pwd->pw_gid) < 0 || seteuid(pwd->pw_uid) < 0) {
/netbsd-6-1-5-RELEASE/tools/compat/
H A Dcompat_pwd.h51 int32_t pw_uid; member in struct:passwd
/netbsd-6-1-5-RELEASE/usr.bin/mail/
H A Dgetname.c70 return pw->pw_uid;
/netbsd-6-1-5-RELEASE/lib/librpcsvc/
H A Dyppasswd.x47 int pw_uid; /* user id */
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/bin/confgen/unix/
H A Dos.c44 return (fchown(fileno(fd), pw->pw_uid, -1));
/netbsd-6-1-5-RELEASE/gnu/dist/gettext/djgpp/
H A Ddjpwd.h28 uid_t pw_uid; /* User ID. */ member in struct:passwd
H A Dgetpwnam.c27 rv.pw_uid = getuid();
/netbsd-6-1-5-RELEASE/tests/util/id/
H A Dpwgr.c157 p->pw_uid = 0;
161 p->pw_uid = 100;
177 p->pw_uid = 0;
181 p->pw_uid = 100;
/netbsd-6-1-5-RELEASE/tests/lib/libc/sys/
H A Dt_setuid.c94 rv = setuid(pw->pw_uid);
101 if (uid != pw->pw_uid)
110 atf_tc_fail("failed to change UID to %u", pw->pw_uid);
/netbsd-6-1-5-RELEASE/lib/libc/compat/include/
H A Dpwd.h14 uid_t pw_uid; /* user uid */ member in struct:passwd50
30 q->pw_uid = p->pw_uid;
45 q->pw_uid = p->pw_uid;
/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/lib/roken/
H A Dget_default_username.c70 if (pwd != NULL && pwd->pw_uid == uid)
/netbsd-6-1-5-RELEASE/gnu/dist/gettext/gettext-tools/misc/
H A Dcvsuser.c33 pw.pw_uid = 100;
/netbsd-6-1-5-RELEASE/external/ibm-public/postfix/dist/src/util/
H A Dchroot_uid.c58 uid = pwd->pw_uid;
/netbsd-6-1-5-RELEASE/usr.bin/su/
H A Dsu.c184 pwd->pw_uid != ruid)
238 && (!use_kerberos || kerberos5(username, user, pwd->pw_uid))
242 int ok = pwd->pw_uid != 0;
268 if (*pass && pwd->pw_uid != ruid) { /* XXX - OK? */
321 if (ruid != pwd->pw_uid &&
322 setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETGROUP) == -1)
327 if (setusercontext(lc, pwd, pwd->pw_uid,
332 if (setusercontext(lc, pwd, pwd->pw_uid,
341 if (ruid != pwd->pw_uid && initgroups(user, pwd->pw_gid) != 0)
346 if (setuid(pwd->pw_uid)
[all...]
/netbsd-6-1-5-RELEASE/external/bsd/atf/dist/atf-run/
H A Duser.cpp70 return std::make_pair(pw->pw_uid, pw->pw_gid);
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/unit/atf-src/atf-run/
H A Duser.cpp68 return std::make_pair(pw->pw_uid, pw->pw_gid);
/netbsd-6-1-5-RELEASE/external/bsd/libarchive/dist/cpio/
H A Dcpio_windows.h48 uid_t pw_uid; member in struct:passwd
/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/kdc/
H A Dmain.c90 if (setuid(pw->pw_uid) < 0)
98 if (capng_change_id(pw->pw_uid, pw->pw_gid,
/netbsd-6-1-5-RELEASE/games/canfield/cfscores/
H A Dcfscores.c111 pos = pw->pw_uid * (off_t)sizeof(struct betinfo);
112 /* test pos, not pw_uid; uid_t can be unsigned, which makes gcc warn */
114 warnx("Bad uid %d", (int)pw->pw_uid);
/netbsd-6-1-5-RELEASE/tests/kernel/kqueue/
H A Dt_proc2.c69 if ((setuid(pwd->pw_uid)) == -1)
70 err(EXIT_FAILURE, "setuid(%d)", pwd->pw_uid);

Completed in 219 milliseconds

12345678