Searched refs:pwd (Results 1 - 25 of 436) sorted by relevance

1234567891011>>

/freebsd-9.3-release/crypto/heimdal/lib/roken/
H A Dget_default_username.c67 struct passwd *pwd; local
70 pwd = k_getpwnam (user);
71 if (pwd != NULL && pwd->pw_uid == uid)
74 pwd = k_getpwuid (uid);
75 if (pwd != NULL)
76 return pwd->pw_name;
/freebsd-9.3-release/lib/libcompat/4.4/
H A Dcuserid.c36 #include <pwd.h>
44 struct passwd *pwd; local
46 if ((pwd = getpwuid(geteuid())) == NULL) {
52 (void)strncpy(s, pwd->pw_name, L_cuserid);
55 return (pwd->pw_name);
/freebsd-9.3-release/usr.sbin/pw/
H A Dpwupd.c107 fmtpwentry(char *buf, struct passwd * pwd, int type) argument
113 ((pwd->pw_passwd == NULL) ? "" : pwd->pw_passwd) : "*";
117 pwd->pw_name, (long) pwd->pw_uid, (long) pwd->pw_gid,
118 pwd->pw_gecos ? pwd->pw_gecos : "User &",
119 pwd->pw_dir, pwd
132 fmtpwent(char *buf, struct passwd * pwd) argument
138 pw_update(struct passwd * pwd, char const * user, int mode) argument
196 addpwent(struct passwd * pwd) argument
202 chgpwent(char const * login, struct passwd * pwd) argument
208 delpwent(struct passwd * pwd) argument
[all...]
H A Dpw_nis.c40 pw_nisupdate(const char * path, struct passwd * pwd, char const * user, int mode) argument
49 if (pwd == NULL)
52 fmtpwentry(pwbuf, pwd, PWF_MASTER);
57 addnispwent(const char *path, struct passwd * pwd) argument
59 return pw_nisupdate(path, pwd, pwd->pw_name, UPD_CREATE);
63 chgnispwent(const char *path, char const * login, struct passwd * pwd) argument
65 return pw_nisupdate(path, pwd, login, UPD_REPLACE);
H A Dpw_user.c52 static int print_user(struct passwd * pwd, int pretty, int v7);
105 struct passwd *pwd = NULL; local
297 while ((pwd = GETPWENT()) != NULL)
298 print_user(pwd, pretty, v7);
304 pwd = GETPWNAM(pw_checkname((u_char *)a_name->val, 0));
316 if (mode != M_ADD && pwd == NULL
330 if (a_name == NULL && pwd == NULL) /* Try harder */
331 pwd = GETPWUID(atoi(a_uid->val));
333 if (pwd == NULL) {
347 a_name = addarg(args, 'n', newstr(pwd
799 struct passwd *pwd; local
1082 print_user(struct passwd * pwd, int pretty, int v7) argument
[all...]
/freebsd-9.3-release/crypto/openssl/util/
H A Dmklink.pl18 my $pwd;
22 $pwd = `pwd`;
26 $pwd = getcwd();
33 chomp($pwd);
34 my @pwd_path = split(/[\\\/]/, $pwd);
42 # @pwd_path (interpreted is an absolute path) to the original pwd.
44 # At the end, @from_path (as a relative path from the original pwd)
46 # which means that @to_path then is a path from there to the original pwd.
H A Dfiles.pl40 $pwd=`pwd`; chop($pwd);
49 @_=split(/\//,$pwd);
/freebsd-9.3-release/contrib/top/
H A Dusername.c36 #include <pwd.h>
89 struct passwd *pwd; local
95 if ((pwd = getpwnam(username)) == NULL)
101 enter_user(pwd->pw_uid, username, 1);
104 return(pwd->pw_uid);
148 struct passwd *pwd; local
152 if ((pwd = getpwuid(uid)) != NULL)
154 return(enter_user(pwd->pw_uid, pwd->pw_name, 1));
175 while ((pwd
[all...]
/freebsd-9.3-release/usr.bin/logins/
H A Dlogins.c36 #include <pwd.h>
205 struct passwd *pwd; local
213 if ((pwd = getpwent()) == NULL)
215 pwds[npwds].pw_name = xstrdup(pwd->pw_name);
216 pwds[npwds].pw_passwd = xstrdup(pwd->pw_passwd);
217 pwds[npwds].pw_uid = pwd->pw_uid;
218 pwds[npwds].pw_gid = pwd->pw_gid;
219 pwds[npwds].pw_change = pwd->pw_change;
220 pwds[npwds].pw_class = xstrdup(pwd->pw_class);
221 pwds[npwds].pw_gecos = xstrdup(pwd
236 struct xpasswd *pwd; local
293 display_user(struct xpasswd *pwd) argument
331 struct xpasswd *pwd; local
[all...]
/freebsd-9.3-release/tools/regression/lib/libc/nss/
H A Dtest-getpw.c33 #include <pwd.h>
127 free_passwd(struct passwd *pwd) argument
129 free(pwd->pw_name);
130 free(pwd->pw_passwd);
131 free(pwd->pw_class);
132 free(pwd->pw_gecos);
133 free(pwd->pw_dir);
134 free(pwd->pw_shell);
138 sdump_passwd(struct passwd *pwd, char *buffer, size_t buflen) argument
141 pwd
147 dump_passwd(struct passwd *pwd) argument
158 passwd_read_snapshot_func(struct passwd *pwd, char *line) argument
239 struct passwd *pwd; local
254 passwd_test_correctness(struct passwd *pwd, void *mdata) argument
297 passwd_check_ambiguity(struct passwd_test_data *td, struct passwd *pwd) argument
307 struct passwd *pwd; local
337 struct passwd *pwd; local
360 passwd_test_getpwent(struct passwd *pwd, void *mdata) argument
[all...]
/freebsd-9.3-release/crypto/heimdal/lib/auth/sia/
H A Dposix_getpw.c44 posix_getpwnam_r(const char *name, struct passwd *pwd, argument
47 int ret = getpwnam_r(name, pwd, buffer, len);
49 *result = pwd;
62 posix_getpwuid_r(uid_t uid, struct passwd *pwd, argument
65 int ret = getpwuid_r(uid, pwd, buffer, len);
67 *result = pwd;
/freebsd-9.3-release/contrib/openpam/lib/libpam/
H A Dopenpam_borrow_cred.c46 #include <pwd.h>
63 const struct passwd *pwd)
69 ENTERI(pwd->pw_uid);
76 if (geteuid() != 0 && geteuid() != pwd->pw_uid) {
97 if (geteuid() == pwd->pw_uid)
99 if (initgroups(pwd->pw_name, pwd->pw_gid) < 0 ||
100 setegid(pwd->pw_gid) < 0 || seteuid(pwd->pw_uid) < 0) {
118 * switches to those of the user specified by its =pwd argumen
62 openpam_borrow_cred(pam_handle_t *pamh, const struct passwd *pwd) argument
[all...]
/freebsd-9.3-release/crypto/openssh/openbsd-compat/
H A Dport-solaris.h23 #include <pwd.h>
/freebsd-9.3-release/usr.bin/login/
H A Dlogin.h37 extern struct passwd *pwd;
/freebsd-9.3-release/lib/libpam/modules/pam_unix/
H A Dpam_unix.c48 #include <pwd.h>
92 struct passwd *pwd; local
103 pwd = getpwnam(user);
107 if (pwd != NULL) {
109 realpw = pwd->pw_passwd;
116 lc = login_getpwclass(pwd);
151 struct passwd *pwd; local
164 if (user == NULL || (pwd = getpwnam(user)) == NULL)
177 if (*pwd->pw_passwd == '\0' &&
181 if (strncmp(pwd
274 struct passwd *pwd, *old_pwd; local
[all...]
/freebsd-9.3-release/crypto/heimdal/appl/login/
H A Dlogin.c146 otp_verify(struct passwd *pwd, const char *password) argument
160 krb5_verify(struct passwd *pwd, const char *password) argument
165 ret = krb5_parse_name(context, pwd->pw_name, &princ);
251 krb5_start_session (const struct passwd *pwd) argument
258 (unsigned)pwd->pw_uid);
282 krb5_get_afs_tokens (const struct passwd *pwd) argument
294 pw_dir = pwd->pw_dir;
303 cell, NULL, pwd->pw_uid, pwd->pw_dir);
305 pwd
315 krb4_verify(struct passwd *pwd, const char *password) argument
346 krb4_get_afs_tokens(const struct passwd *pwd) argument
446 do_login(const struct passwd *pwd, char *tty, char *ttyn) argument
666 check_password(struct passwd *pwd, const char *password) argument
794 struct passwd *pwd; local
[all...]
/freebsd-9.3-release/contrib/binutils/libiberty/
H A Dgetpwd.c70 static char *pwd; local
73 char *p = pwd;
103 pwd = p;
117 static char *pwd = 0; local
119 if (!pwd)
120 pwd = getcwd (XNEWVEC (char, MAXPATHLEN + 1), MAXPATHLEN + 1
125 return pwd;
/freebsd-9.3-release/contrib/gcclibs/libiberty/
H A Dgetpwd.c70 static char *pwd; local
73 char *p = pwd;
103 pwd = p;
117 static char *pwd = 0; local
119 if (!pwd)
120 pwd = getcwd (XNEWVEC (char, MAXPATHLEN + 1), MAXPATHLEN + 1
125 return pwd;
/freebsd-9.3-release/tools/regression/mlock/
H A Dmlock.c34 #include <pwd.h>
50 struct passwd *pwd; local
58 pwd = getpwnam(NOBODY);
59 if (pwd == NULL && errno == 0)
61 if (pwd == NULL)
63 if (pwd->pw_uid == 0)
77 if (seteuid(pwd->pw_uid) < 0)
/freebsd-9.3-release/usr.bin/passwd/
H A Dpasswd.c41 #include <pwd.h>
70 struct passwd *pwd = NULL; /* Keep compiler happy. */ local
98 if ((pwd = getpwuid(uid)) == NULL)
102 if ((pwd = getpwnam(*argv)) == NULL)
109 if (uid != 0 && uid != pwd->pw_uid)
113 switch (pwd->pw_fields & _PWF_SOURCE) {
116 pwd->pw_name);
120 pwd->pw_name);
140 pam_err = pam_start("passwd", pwd->pw_name, &pamc, &pamh);
/freebsd-9.3-release/lib/libpam/modules/pam_self/
H A Dpam_self.c42 #include <pwd.h>
58 struct passwd *pwd; local
66 if (luser == NULL || (pwd = getpwnam(luser)) == NULL)
73 if (uid == (uid_t)pwd->pw_uid)
/freebsd-9.3-release/lib/libpam/modules/pam_chroot/
H A Dpam_chroot.c40 #include <pwd.h>
56 struct passwd *pwd; local
60 user == NULL || (pwd = getpwnam(user)) == NULL)
62 if (pwd->pw_uid == 0 && !openpam_get_option(pamh, "also_root"))
64 if (pwd->pw_dir == NULL)
66 if ((end = strstr(pwd->pw_dir, "/./")) != NULL) {
68 (int)(end - pwd->pw_dir), pwd->pw_dir) > (int)sizeof(buf)) {
/freebsd-9.3-release/lib/libutil/
H A Dlogin_class.c42 #include <pwd.h>
139 substvar(const char * var, const struct passwd * pwd, int hlen, int pch, int nlen) argument
149 if (pwd != NULL) {
163 if (pwd != NULL) {
176 memmove(p, pwd->pw_dir, hlen);
183 memmove(p, pwd->pw_name, nlen);
196 setclassenvironment(login_cap_t *lc, const struct passwd * pwd, int paths) argument
199 int hlen = pwd ? strlen(pwd->pw_dir) : 0;
200 int nlen = pwd
384 setlogincontext(login_cap_t *lc, const struct passwd *pwd, mode_t mymask, unsigned long flags) argument
424 setusercontext(login_cap_t *lc, const struct passwd *pwd, uid_t uid, unsigned int flags) argument
[all...]
/freebsd-9.3-release/crypto/heimdal/lib/auth/afskauthlib/
H A Dverify.c40 #include <pwd.h>
116 verify_krb5(struct passwd *pwd, argument
132 ret = krb5_parse_name (context, pwd->pw_name, &principal);
139 set_krb5ccname(pwd->pw_uid);
159 if(chown(krb5_cc_get_name(context, ccache), pwd->pw_uid, pwd->pw_gid)) {
190 set_krbtkfile(pwd->pw_uid);
209 pwd->pw_uid, pwd->pw_dir);
221 verify_krb4(struct passwd *pwd, argument
254 struct passwd *pwd = k_getpwnam (name); local
281 struct passwd *pwd; local
[all...]
/freebsd-9.3-release/lib/libpam/modules/pam_group/
H A Dpam_group.c42 #include <pwd.h>
64 struct passwd *pwd; local
69 user == NULL || (pwd = getpwnam(user)) == NULL)
71 if (pwd->pw_uid != 0 && openpam_get_option(pamh, "root_only"))
89 ruser == NULL || (pwd = getpwnam(ruser)) == NULL)
104 if (pwd->pw_gid == grp->gr_gid)
107 if (strcmp(*list, pwd->pw_name) == 0)

Completed in 288 milliseconds

1234567891011>>