Searched refs:pw (Results 1 - 25 of 309) sorted by relevance

1234567891011>>

/freebsd-current/crypto/openssh/openbsd-compat/
H A Dport-uw.h28 char * get_iaf_password(struct passwd *pw);
H A Dport-irix.h33 void irix_setusercontext(struct passwd *pw);
H A Dport-irix.c49 irix_setusercontext(struct passwd *pw) argument
61 jid = jlimit_startjob(pw->pw_name, pw->pw_uid, "interactive");
74 if ((projid = getdfltprojuser(pw->pw_name)) == -1) {
80 (int)projid, pw->pw_name, strerror(errno));
84 debug("Setting sat id to %d", (int) pw->pw_uid);
85 if (satsetid(pw->pw_uid))
/freebsd-current/tests/sys/cddl/zfs/bin/
H A Dgroupshow.ksh3 /usr/sbin/pw groupshow $*
H A Duseradd.ksh11 /usr/sbin/pw useradd $g $a
H A Duserdel.ksh11 /usr/sbin/pw userdel $g $a
H A Dusermod.ksh11 /usr/sbin/pw usermod $g $a
H A Dgroupadd.ksh11 /usr/sbin/pw groupadd $g $a
H A Dgroupdel.ksh11 /usr/sbin/pw groupdel $a $g
H A Dgroupmod.ksh11 /usr/sbin/pw groupmod $g $a
/freebsd-current/usr.bin/mail/
H A Dgetname.c44 struct passwd *pw; local
46 if ((pw = getpwuid(uid)) == NULL)
48 return (pw->pw_name);
58 struct passwd *pw; local
60 if ((pw = getpwnam(name)) == NULL)
62 return (pw->pw_uid);
/freebsd-current/crypto/heimdal/lib/roken/
H A Dverify.c48 struct passwd *pw; local
50 pw = k_getpwnam(user);
51 if(pw == NULL)
53 if(strlen(pw->pw_passwd) == 0 && strlen(password) == 0)
55 if(strcmp(crypt(password, pw->pw_passwd), pw->pw_passwd) == 0)
/freebsd-current/lib/libcrypt/
H A Dcrypt.h35 int crypt_des(const char *pw, const char *salt, char *buf);
36 int crypt_md5(const char *pw, const char *salt, char *buf);
37 int crypt_nthash(const char *pw, const char *salt, char *buf);
38 int crypt_blowfish(const char *pw, const char *salt, char *buf);
39 int crypt_sha256 (const char *pw, const char *salt, char *buf);
40 int crypt_sha512 (const char *pw, const char *salt, char *buf);
/freebsd-current/libexec/nuageinit/tests/
H A Dadduser.lua10 local pw = {}
11 pw.name = "impossible_username"
12 local res = n.adduser(pw)
/freebsd-current/crypto/openssh/
H A Duidswap.c61 temporarily_use_uid(struct passwd *pw) argument
68 (u_int)pw->pw_uid, (u_int)pw->pw_gid,
100 if (user_groupslen == -1 || user_groups_uid != pw->pw_uid) {
101 if (initgroups(pw->pw_name, pw->pw_gid) == -1)
102 fatal("initgroups: %s: %.100s", pw->pw_name,
117 user_groups_uid = pw->pw_uid;
130 if (setegid(pw->pw_gid) == -1)
131 fatal("setegid %u: %.100s", (u_int)pw
181 permanently_set_uid(struct passwd *pw) argument
[all...]
/freebsd-current/lib/libc/gen/
H A Dpw_scan.c81 __pw_scan(char *bp, struct passwd *pw, int flags) argument
91 pw->pw_fields = 0;
92 if (!(pw->pw_name = strsep(&bp, ":"))) /* login */
94 root = !strcmp(pw->pw_name, "root");
95 if (pw->pw_name[0] && (pw->pw_name[0] != '+' || pw->pw_name[1] == '\0'))
96 pw->pw_fields |= _PWF_NAME;
98 if (!(pw->pw_passwd = strsep(&bp, ":"))) /* passwd */
100 if (pw
[all...]
/freebsd-current/usr.bin/chpass/
H A Dfield.c59 p_login(char *p, struct passwd *pw, ENTRY *ep __unused) argument
69 if (!(pw->pw_name = strdup(p))) {
85 p_passwd(char *p, struct passwd *pw, ENTRY *ep __unused) argument
87 if (!(pw->pw_passwd = strdup(p))) {
97 p_uid(char *p, struct passwd *pw, ENTRY *ep __unused) argument
116 pw->pw_uid = id;
122 p_gid(char *p, struct passwd *pw, ENTRY *ep __unused) argument
137 pw->pw_gid = gr->gr_gid;
146 pw->pw_gid = id;
152 p_class(char *p, struct passwd *pw, ENTR argument
164 p_change(char *p, struct passwd *pw, ENTRY *ep __unused) argument
174 p_expire(char *p, struct passwd *pw, ENTRY *ep __unused) argument
195 p_hdir(char *p, struct passwd *pw, ENTRY *ep __unused) argument
210 p_shell(char *p, struct passwd *pw, ENTRY *ep __unused) argument
[all...]
H A Dchpass.c70 struct passwd lpw, *old_pw, *pw; local
80 pw = old_pw = NULL;
132 if ((pw = getpwuid(uid)) == NULL)
136 if ((pw = getpwnam(*argv)) == NULL)
138 if (uid != 0 && uid != pw->pw_uid)
143 if ((pw = pw_dup(pw)) == NULL ||
144 (old_pw = pw_dup(pw)) == NULL)
149 if (pw != NULL && (pw
[all...]
H A Dedit.c61 static int display(const char *tfn, struct passwd *pw);
62 static struct passwd *verify(const char *tfn, struct passwd *pw);
65 edit(const char *tfn, struct passwd *pw) argument
71 if (display(tfn, pw) == -1)
78 return (pw_dup(pw));
82 if ((npw = verify(tfn, pw)) != NULL)
102 display(const char *tfn, struct passwd *pw) argument
113 "#Changing user information for %s.\n", pw->pw_name);
115 (void)fprintf(fp, "Login: %s\n", pw->pw_name);
116 (void)fprintf(fp, "Password: %s\n", pw
192 verify(const char *tfn, struct passwd *pw) argument
[all...]
/freebsd-current/usr.bin/id/
H A Did.c66 struct passwd *pw; local
147 pw = *argv ? who(*argv) : NULL;
149 if (Mflag && pw != NULL)
168 id = pw ? pw->pw_gid : rflag ? getgid() : getegid();
177 id = pw ? pw->pw_uid : rflag ? getuid() : geteuid();
178 if (nflag && (pw = getpwuid(id)))
179 (void)printf("%s\n", pw->pw_name);
186 group(pw, nfla
217 pretty(struct passwd *pw) argument
257 id_print(struct passwd *pw, int use_ggl, int p_euid, int p_egid) argument
368 group(struct passwd *pw, int nflag) argument
434 struct passwd *pw; local
452 pline(struct passwd *pw) argument
[all...]
/freebsd-current/lib/libcrypt/tests/
H A Dcrypt_tests.c20 char *pw; local
22 pw = crypt(LEET, want);
23 ATF_CHECK_STREQ(pw, want);
36 char *pw; local
38 pw = crypt(LEET, want);
39 ATF_CHECK(strcmp(pw, want) != 0);
/freebsd-current/usr.sbin/pw/
H A DMakefile3 PROG= pw
4 MAN= pw.conf.5 pw.8
5 SRCS= pw.c pw_conf.c pw_user.c pw_group.c pw_log.c pw_nis.c pw_vpw.c \
/freebsd-current/crypto/heimdal/kadmin/
H A Drandom_password.c50 static void generate_password(char **pw, int num_classes, ...);
54 random_password(char *pw, size_t len) argument
61 otp_print_stddict (newkey, pw, len);
62 strlwr(pw);
70 strlcpy(pw, pass, len);
112 generate_password(char **pw, int num_classes, ...) argument
124 *pw = NULL;
138 *pw = malloc(len + 1);
139 if(*pw == NULL) {
149 (*pw)[
[all...]
/freebsd-current/usr.bin/mdo/
H A Dmdo.c28 struct passwd *pw; local
48 if ((pw = getpwnam(username)) == NULL) {
54 pw = getpwuid(uid);
56 if (pw == NULL)
60 if (initgroups(pw->pw_name, pw->pw_gid) == -1)
62 if (setgid(pw->pw_gid) == -1)
65 if (setuid(pw->pw_uid) == -1)
/freebsd-current/libexec/ulog-helper/
H A Dulog-helper.c52 const struct passwd *pw; local
63 if ((login = getlogin()) != NULL && (pw = getpwnam(login)) != NULL &&
64 pw->pw_uid == uid)
66 if ((pw = getpwuid(uid)) != NULL)
67 return (pw->pw_name);

Completed in 255 milliseconds

1234567891011>>