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

1234567891011>>

/netbsd-6-1-5-RELEASE/external/ibm-public/postfix/dist/src/util/
H A Dusername.c32 #include <pwd.h>
43 struct passwd *pwd; local
46 if ((pwd = getpwuid(uid)) == 0)
48 return (pwd->pw_name);
H A Dchroot_uid.c34 #include <pwd.h>
47 struct passwd *pwd; local
56 if ((pwd = getpwnam(user_name)) == 0)
58 uid = pwd->pw_uid;
59 gid = pwd->pw_gid;
H A Dfullname.c41 #include <pwd.h>
60 struct passwd *pwd; local
75 if ((pwd = getpwuid(uid)) == 0)
85 for (cp = pwd->pw_gecos; (ch = *(unsigned char *) cp) != 0; cp++) {
89 if (pwd->pw_name[0]) {
90 VSTRING_ADDCH(result, TOUPPER(pwd->pw_name[0]));
91 vstring_strcat(result, pwd->pw_name + 1);
/netbsd-6-1-5-RELEASE/tools/compat/
H A Dsetpassent.c6 #include <pwd.h>
/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/lib/roken/
H A Dget_default_username.c66 struct passwd *pwd; local
69 pwd = k_getpwnam (user);
70 if (pwd != NULL && pwd->pw_uid == uid)
73 pwd = k_getpwuid (uid);
74 if (pwd != NULL)
75 return pwd->pw_name;
/netbsd-6-1-5-RELEASE/tests/lib/librumphijack/
H A Dh_cwd.c42 static char pwd[1024]; variable
83 if (getcwd(pwd, sizeof(pwd)) == NULL)
85 if (strcmp(pwd, prefix) != 0)
91 if (getcwd(pwd, sizeof(pwd)) == NULL)
93 if (strcmp(pwd, makepath("dir")) != 0)
99 if (getcwd(pwd, sizeof(pwd)) == NULL)
101 if (strcmp(pwd, makepat
[all...]
/netbsd-6-1-5-RELEASE/usr.bin/newgrp/
H A Dnewgrp.c43 #include <pwd.h>
66 struct passwd *pwd; local
76 pwd = getpwuid(uid);
77 if (pwd == NULL)
81 if ((lc = login_getclass(pwd->pw_class)) == NULL)
82 errx(EXIT_FAILURE, "%s: unknown login class", pwd->pw_class);
106 pwd->pw_gid = newgrp(*argv, pwd);
107 addgrp(pwd->pw_gid);
108 if (setgid(pwd
[all...]
/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/lib/otp/
H A Dotp_md.h38 int otp_md4_init (OtpKey key, const char *pwd, const char *seed);
42 int otp_md5_init (OtpKey key, const char *pwd, const char *seed);
46 int otp_sha_init (OtpKey key, const char *pwd, const char *seed);
/netbsd-6-1-5-RELEASE/external/bsd/openpam/dist/lib/
H A Dopenpam_borrow_cred.c48 #include <pwd.h>
64 const struct passwd *pwd)
70 ENTERI(pwd->pw_uid);
77 if (geteuid() != 0 && geteuid() != pwd->pw_uid) {
98 if (geteuid() == pwd->pw_uid)
100 if (initgroups(pwd->pw_name, pwd->pw_gid) < 0 ||
101 setegid(pwd->pw_gid) < 0 || seteuid(pwd->pw_uid) < 0) {
120 * switches to those of the user specified by its =pwd argumen
63 openpam_borrow_cred(pam_handle_t *pamh, const struct passwd *pwd) argument
[all...]
/netbsd-6-1-5-RELEASE/bin/pwd/
H A Dpwd.c1 /* $NetBSD: pwd.c,v 1.21 2008/07/20 00:52:40 lukem Exp $ */
40 static char sccsid[] = "@(#)pwd.c 8.3 (Berkeley) 4/1/94";
42 __RCSID("$NetBSD: pwd.c,v 1.21 2008/07/20 00:52:40 lukem Exp $");
66 * (Some scripts run /bin/pwd in order to get 'pwd -P'.)
117 char *pwd; local
121 pwd = getenv("PWD");
122 if (pwd == NULL)
124 if (pwd[0] != '/')
126 if (strstr(pwd, "/
[all...]
/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssl/dist/util/
H A Dfiles.pl40 $pwd=`pwd`; chop($pwd);
49 @_=split(/\//,$pwd);
H A Dmklink.pl24 my $pwd = getcwd();
25 chomp($pwd);
26 my @pwd_path = split(/[\\\/]/, $pwd);
34 # @pwd_path (interpreted is an absolute path) to the original pwd.
36 # At the end, @from_path (as a relative path from the original pwd)
38 # which means that @to_path then is a path from there to the original pwd.
/netbsd-6-1-5-RELEASE/distrib/utils/libhack/
H A Dgetpwent.c66 #include <pwd.h>
98 struct passwd **pwd)
106 *pwd = NULL;
108 *pwd = pwres;
115 struct passwd *pwd; local
117 &pwd) == 0 ? pwd : NULL;
122 struct passwd **pwd)
132 *pwd = NULL;
134 *pwd
97 getpwent_r(struct passwd *pwres, char *buf, size_t bufsiz, struct passwd **pwd) argument
121 getpwnam_r(const char *name, struct passwd *pwres, char *buf, size_t bufsiz, struct passwd **pwd) argument
141 struct passwd *pwd; local
147 getpwuid_r(uid_t uid, struct passwd *pwres, char *buf, size_t bufsiz, struct passwd **pwd) argument
206 pwscan(int search, uid_t uid, const char *name, struct passwd *pwd, char *buf, size_t bufsiz) argument
233 pwmatchline(int search, uid_t uid, const char *name, struct passwd *pwd, char *buf) argument
[all...]
/netbsd-6-1-5-RELEASE/usr.bin/su/
H A Dsu.c53 #include <pwd.h>
105 struct passwd *pwd; local
183 if (username == NULL || (pwd = getpwnam(username)) == NULL ||
184 pwd->pw_uid != ruid)
185 pwd = getpwuid(ruid);
186 if (pwd == NULL)
188 username = estrdup(pwd->pw_name);
189 userpass = estrdup(pwd->pw_passwd);
192 if (pwd->pw_shell && *pwd
[all...]
/netbsd-6-1-5-RELEASE/lib/libpam/modules/pam_unix/
H A Dpam_unix.c52 #include <pwd.h>
88 struct passwd *pwd, pwres; local
93 pwd = NULL;
96 &pwd); local
102 (void) getpwnam_r(user, &pwres, pwbuf, sizeof(pwbuf), &pwd);
105 if (pwd != NULL) {
107 realpw = pwd->pw_passwd;
114 lc = login_getpwclass(pwd);
149 struct passwd *pwd, pwres; local
162 getpwnam_r(user, &pwres, pwbuf, sizeof(pwbuf), &pwd) !
247 yp_set_password(pam_handle_t *pamh, struct passwd *opwd, struct passwd *pwd, const char *old_pass, const char *domain) argument
356 local_set_password(pam_handle_t *pamh, struct passwd *opwd, struct passwd *pwd) argument
407 struct passwd *pwd, new_pwd, old_pwd; local
[all...]
/netbsd-6-1-5-RELEASE/external/gpl3/binutils/dist/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;
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/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;
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/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;
/netbsd-6-1-5-RELEASE/external/gpl3/gdb/dist/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;
/netbsd-6-1-5-RELEASE/lib/libpam/modules/pam_chroot/
H A Dpam_chroot.c46 #include <pwd.h>
63 struct passwd *pwd, pwres; local
69 getpwnam_r(user, &pwres, pwbuf, sizeof(pwbuf), &pwd) != 0 ||
70 pwd == NULL)
72 if (pwd->pw_uid == 0 && !openpam_get_option(pamh, "also_root"))
74 if (pwd->pw_dir == NULL)
76 if ((end = strstr(pwd->pw_dir, "/./")) != NULL) {
78 (int)(end - pwd->pw_dir), pwd->pw_dir) > (int)sizeof(buf)) {
/netbsd-6-1-5-RELEASE/external/bsd/openldap/dist/contrib/ldapc++/src/
H A DLDAPRebindAuth.cpp14 LDAPRebindAuth::LDAPRebindAuth(const string& dn, const string& pwd){ argument
17 << " pwd:" << pwd << endl);
19 m_password=pwd;
/netbsd-6-1-5-RELEASE/usr.bin/login/
H A Dlogin_pam.c62 #include <pwd.h>
254 if (failures > (pwd ? 0 : 1))
296 pwd = NULL;
297 (void)getpwnam_r(username, &pwres, pwbuf, sizeof(pwbuf), &pwd);
301 * within the next block. pwd can be NULL since it
304 lc = login_getclass(pwd ? pwd->pw_class : NULL);
312 if (pwd) {
313 if (pwd->pw_uid == 0)
316 if (fflag && (uid == 0 || uid == pwd
[all...]
H A Dlogin.c62 #include <pwd.h>
334 if (failures > (pwd ? 0 : 1))
340 pwd = getpwnam(username);
345 * within the next block. pwd can be NULL since it
348 lc = login_getclass(pwd ? pwd->pw_class : NULL);
356 if (pwd) {
357 if (pwd->pw_uid == 0)
360 if (fflag && (uid == 0 || uid == pwd->pw_uid)) {
367 } else if (pwd
[all...]
/netbsd-6-1-5-RELEASE/external/ibm-public/postfix/dist/src/global/
H A Dmypwd.c17 /* void mypwfree(pwd)
18 /* struct mypasswd *pwd;
50 #include <pwd.h>
77 static struct mypasswd *mypwenter(struct passwd * pwd) argument
90 mypwd->pw_name = mystrdup(pwd->pw_name);
91 mypwd->pw_passwd = mystrdup(pwd->pw_passwd);
92 mypwd->pw_uid = pwd->pw_uid;
93 mypwd->pw_gid = pwd->pw_gid;
94 mypwd->pw_gecos = mystrdup(pwd->pw_gecos);
95 mypwd->pw_dir = mystrdup(pwd
107 struct passwd *pwd; local
143 struct passwd *pwd; local
[all...]
/netbsd-6-1-5-RELEASE/lib/libpam/modules/pam_group/
H A Dpam_group.c47 #include <pwd.h>
73 struct passwd *pwd, pwres; local
83 getpwnam_r(user, &pwres, pwbuf, sizeof(pwbuf), &pwd) != 0 ||
84 pwd == NULL)
86 if (pwd->pw_uid != 0 && openpam_get_option(pamh, "root_only"))
92 getpwnam_r(ruser, &pwres, pwbuf, sizeof(pwbuf), &pwd) != 0 ||
93 pwd == NULL)
110 if (pwd->pw_gid == grp->gr_gid)
113 if (strcmp(*list, pwd->pw_name) == 0)
130 if ((pam_err = authenticate(pamh, pwd, flag
152 authenticate(pam_handle_t *pamh, struct passwd *pwd, int flags) argument
[all...]

Completed in 242 milliseconds

1234567891011>>