Searched refs:pwd (Results 51 - 75 of 454) sorted by relevance

1234567891011>>

/freebsd-current/contrib/openpam/modules/pam_unix/
H A Dpam_unix.c42 #include <pwd.h>
73 struct passwd *pwd; local
84 if ((pwd = getpwnam(user)) == NULL)
120 if ((!pwd->pw_passwd[0] && (flags & PAM_DISALLOW_NULL_AUTHTOK)) ||
121 (crypt_password = crypt(password, pwd->pw_passwd)) == NULL ||
122 strcmp(crypt_password, pwd->pw_passwd) != 0)
/freebsd-current/lib/libcasper/services/cap_pwd/tests/
H A Dpwd_test.c38 #include <pwd.h>
885 passwd_fields(const struct passwd *pwd) argument
891 if (pwd->pw_name != NULL && pwd->pw_name[0] != '\0')
896 if (pwd->pw_passwd != NULL && pwd->pw_passwd[0] != '\0')
898 else if ((pwd->pw_fields & _PWF_PASSWD) != 0)
903 if (pwd->pw_uid != (uid_t)-1)
908 if (pwd->pw_gid != (gid_t)-1)
913 if (pwd
974 struct passwd *pwd; local
1193 struct passwd *pwd; local
[all...]
/freebsd-current/usr.bin/login/
H A Dlogin_audit.c43 #include <pwd.h>
66 uid_t uid = pwd->pw_uid;
67 gid_t gid = pwd->pw_gid;
81 if (au_user_mask(pwd->pw_name, &aumask) == -1)
144 uid = pwd->pw_uid;
145 gid = pwd->pw_gid;
174 uid_t uid = pwd->pw_uid;
175 gid_t gid = pwd->pw_gid;
/freebsd-current/crypto/openssh/
H A Dsftp-server-main.c21 #include <pwd.h>
/freebsd-current/usr.bin/from/
H A Dfrom.c35 #include <pwd.h>
49 struct passwd *pwd; local
87 if (!(pwd = getpwuid(getuid())))
89 file = pwd->pw_name;
/freebsd-current/crypto/heimdal/lib/krb5/
H A Dkuserok.c45 struct passwd *pwd,
70 if (st.st_uid != pwd->pw_uid && st.st_uid != 0) {
111 struct passwd *pwd,
129 if (st.st_uid != pwd->pw_uid && st.st_uid != 0)
159 ret = check_one_file(context, filename, pwd, principal, result);
244 struct passwd *pwd = NULL; local
255 if(getpwnam_r(luser, &pw, pwbuf, sizeof(pwbuf), &pwd) != 0)
258 pwd = getpwnam (luser);
260 if (pwd == NULL)
262 profile_dir = pwd
43 check_one_file(krb5_context context, const char *filename, struct passwd *pwd, krb5_principal principal, krb5_boolean *result) argument
109 check_directory(krb5_context context, const char *dirname, struct passwd *pwd, krb5_principal principal, krb5_boolean *result) argument
[all...]
/freebsd-current/kerberos5/lib/libgssapi_krb5/
H A Dpname_to_uid.c31 #include <pwd.h>
43 struct passwd pwd, *pw; local
66 error = getpwnam_r(lname, &pwd, bufp, buflen, &pw);
/freebsd-current/lib/libc/net/
H A Dnss_compat.c198 struct passwd *pwd; local
206 pwd = va_arg(ap, struct passwd *);
210 nss_status = fn(name, pwd, buffer, bufsize, errnop);
213 *(struct passwd **)retval = pwd;
223 struct passwd *pwd; local
231 pwd = va_arg(ap, struct passwd *);
235 nss_status = fn(uid, pwd, buffer, bufsize, errnop);
238 *(struct passwd **)retval = pwd;
247 struct passwd *pwd; local
256 pwd
[all...]
/freebsd-current/contrib/dma/
H A Dutil.c43 #include <pwd.h>
212 struct passwd *pwd; local
216 pwd = getpwnam(name);
217 if (pwd == NULL || pwd->pw_uid != ckuid)
226 struct passwd *pwd; local
235 pwd = getpwuid(useruid);
236 if (pwd != NULL && pwd->pw_name != NULL && pwd
[all...]
/freebsd-current/bin/sh/
H A Dcd.c42 * The cd and pwd commands.
388 char *pwd; local
392 pwd = stalloc(i);
393 if (getcwd(pwd, i) != NULL)
394 return pwd;
395 stunalloc(pwd);
410 char *pwd; local
413 pwd = lookupvar("PWD");
414 if (pwd && *pwd
[all...]
/freebsd-current/usr.sbin/cron/cron/
H A Dpopen.c57 struct passwd *pwd; local
146 if ((pwd = getpwnam(usernm)) == NULL)
147 pwd = getpwuid(e->uid);
149 if (pwd != NULL) {
150 pwd->pw_gid = e->gid;
154 if (pwd &&
155 setusercontext(lc, pwd, e->uid,
/freebsd-current/crypto/heimdal/lib/kadm5/
H A Dpassword_quality.c47 krb5_data *pwd,
57 if (pwd->length < min_length) {
67 krb5_data *pwd)
74 ret = min_length_passwd_quality(context, principal, pwd, NULL,
85 krb5_data *pwd,
105 len = pwd->length + 1;
111 strlcpy(pw, pwd->data, len);
118 memset(pw, 0, pwd->length + 1);
136 krb5_data *pwd,
149 if (memchr(pwd
45 min_length_passwd_quality(krb5_context context, krb5_principal principal, krb5_data *pwd, const char *opaque, char *message, size_t length) argument
65 min_length_passwd_quality_v0(krb5_context context, krb5_principal principal, krb5_data *pwd) argument
83 char_class_passwd_quality(krb5_context context, krb5_principal principal, krb5_data *pwd, const char *opaque, char *message, size_t length) argument
134 external_passwd_quality(krb5_context context, krb5_principal principal, krb5_data *pwd, const char *opaque, char *message, size_t length) argument
[all...]
/freebsd-current/lib/libpam/modules/pam_ftpusers/
H A Dpam_ftpusers.c41 #include <pwd.h>
57 struct passwd *pwd; local
68 if (user == NULL || (pwd = getpwnam(user)) == NULL)
/freebsd-current/contrib/lib9p/
H A Drfuncs.h32 #include <pwd.h>
/freebsd-current/contrib/sendmail/include/sm/
H A Dmbdb.h15 #include <pwd.h>
/freebsd-current/crypto/heimdal/appl/su/
H A Dsu.c51 #include <pwd.h>
120 dup_info(const struct passwd *pwd) argument
127 info->pw_name = strdup(pwd->pw_name);
128 info->pw_passwd = strdup(pwd->pw_passwd);
129 info->pw_uid = pwd->pw_uid;
130 info->pw_gid = pwd->pw_gid;
131 info->pw_dir = strdup(pwd->pw_dir);
132 info->pw_shell = strdup(pwd->pw_shell);
335 struct passwd *pwd; local
366 pwd
[all...]
/freebsd-current/crypto/heimdal/appl/rcp/
H A Drcp_locl.h51 #include <pwd.h>
/freebsd-current/crypto/heimdal/appl/kf/
H A Dkf_locl.h63 #include <pwd.h>
/freebsd-current/usr.sbin/bluetooth/sdpd/
H A Dmain.c38 #include <pwd.h>
166 struct passwd *pwd = getpwnam(user); local
168 if (pwd == NULL) {
174 uid = pwd->pw_uid;
/freebsd-current/usr.bin/renice/
H A Drenice.c39 #include <pwd.h>
57 struct passwd *pwd; local
97 if ((pwd = getpwnam(*argv)) != NULL)
98 who = pwd->pw_uid;
/freebsd-current/usr.sbin/pw/
H A Dpwupd.h35 #include <pwd.h>
116 int addpwent(struct passwd * pwd);
117 int delpwent(struct passwd * pwd);
118 int chgpwent(char const * login, struct passwd * pwd);
/freebsd-current/crypto/heimdal/appl/rsh/
H A Drshd.c41 read_limits_conf(const char *file, const struct passwd *pwd);
142 struct passwd *pwd; local
147 pwd = getpwnam(*server_username);
148 if (pwd == NULL)
150 if (iruserok(thataddr->sin_addr.s_addr, pwd->pw_uid == 0,
557 setup_environment (char ***env, const struct passwd *pwd) argument
577 if (asprintf (&e[i++], "USER=%s", pwd->pw_name) == -1)
579 if (asprintf (&e[i++], "HOME=%s", pwd->pw_dir) == -1)
581 if (asprintf (&e[i++], "SHELL=%s", pwd->pw_shell) == -1)
610 struct passwd *pwd; local
[all...]
/freebsd-current/lib/libpam/modules/pam_ssh/
H A Dpam_ssh.c44 #include <pwd.h>
160 struct passwd *pwd; local
173 pwd = getpwnam(user);
174 if (pwd == NULL)
176 if (pwd->pw_dir == NULL)
190 pam_err = openpam_borrow_cred(pamh, pwd);
196 psk = pam_ssh_load_key(pwd->pw_dir, *kfn, passphrase, nullok);
379 struct passwd *pwd; local
393 pwd = getpwnam(user);
394 if (pwd
[all...]
/freebsd-current/contrib/bmake/unit-tests/
H A Dexport-all.mk7 M_tAbad= C,.*,cd & \&\& 'pwd',:sh
/freebsd-current/crypto/heimdal/appl/ftp/ftpd/
H A Dextern.h52 #include <pwd.h>
86 void pwd(void);

Completed in 176 milliseconds

1234567891011>>