Home
last modified time | relevance | path

Searched full:passwd (Results 1 – 25 of 904) sorted by relevance

12345678910>>...37

/freebsd/lib/libc/tests/nss/
H A Dgetpw_test.c49 DECLARE_TEST_DATA(passwd)
50 DECLARE_TEST_FILE_SNAPSHOT(passwd)
51 DECLARE_1PASS_TEST(passwd)
52 DECLARE_2PASS_TEST(passwd)
54 static void clone_passwd(struct passwd *, struct passwd const *);
55 static int compare_passwd(struct passwd *, struct passwd *, void *);
56 static void free_passwd(struct passwd *);
58 static void sdump_passwd(struct passwd *, char *, size_t);
60 static void dump_passwd(struct passwd *);
63 static int passwd_read_snapshot_func(struct passwd *, char *);
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/xattr/
H A Dxattr_011_pos.ksh61 create_xattr $TESTDIR/myfile.$$ passwd /etc/passwd
72 create_xattr $TESTDIR/cpio.$$ passwd /etc/passwd
78 log_mustnot eval "runat $TESTDIR/cpio.$$ cat passwd > /dev/null 2>&1"
82 log_must eval "runat $TESTDIR/cpio.$$ cat passwd > /dev/null 2>&1"
86 log_mustnot eval "runat $TESTDIR/cpio.$$ cat passwd > /dev/null 2>&1"
90 log_mustnot eval "runat $TESTDIR/cpio.$$ cat passwd > /dev/null 2>&1"
103 compare_xattrs $TESTDIR/myfile.$$ $TESTDIR/myfile2.$$ passwd
108 log_mustnot get_xattr passwd $TESTDIR/myfile2.$$
114 compare_xattrs $TESTDIR/myfile.$$ $TESTDIR/myfile2.$$ passwd
119 log_mustnot eval "runat $TESTDIR/myfile2.$$ ls passwd > /dev/null 2>&1"
[all …]
H A Dxattr_013_pos.ksh57 create_xattr $TESTDIR/myfile.$$ passwd /etc/passwd
64 log_mustnot eval "runat $TESTDIR/myfile.$$ cat passwd > /dev/null 2>&1"
65 log_mustnot eval "runat $TESTDIR/myfile.$$ rm passwd > /dev/null 2>&1"
66 log_mustnot eval "runat $TESTDIR/myfile.$$ cp /etc/passwd . \
70 log_mustnot eval "runat $TESTDIR/new.$$ cp /etc/passwd . \
72 log_mustnot eval "runat $TESTDIR/new.$$ rm passwd > /dev/null 2>&1"
74 log_mustnot get_xattr passwd $TESTDIR/myfile.$$
75 log_mustnot rm_xattr passwd $TESTDIR/myfile.$$
76 log_mustnot set_xattr_stdin passwd $TESTDIR/myfile.$$ </etc/passwd
79 log_mustnot set_xattr_stdin passwd $TESTDIR/new.$$ </etc/passwd
[all …]
/freebsd/tools/regression/security/cap_test/
H A Dcap_test_relative.c71 CHECK_SYSCALL_SUCCEEDS(openat, etc, "/etc/passwd", O_RDONLY); in test_relative()
72 CHECK_SYSCALL_SUCCEEDS(openat, AT_FDCWD, "/etc/passwd", O_RDONLY); in test_relative()
73 CHECK_SYSCALL_SUCCEEDS(openat, etc, "passwd", O_RDONLY); in test_relative()
74 CHECK_SYSCALL_SUCCEEDS(openat, etc, "../etc/passwd", O_RDONLY); in test_relative()
81 CHECK_SYSCALL_SUCCEEDS(openat, etc_cap_ro, "passwd", O_RDONLY); in test_relative()
82 CHECK_SYSCALL_SUCCEEDS(openat, etc_cap_base, "passwd", O_RDONLY); in test_relative()
83 CHECK_SYSCALL_SUCCEEDS(openat, etc_cap_all, "passwd", O_RDONLY); in test_relative()
85 CHECK_NOTCAPABLE(openat, etc_cap_ro, "../etc/passwd", O_RDONLY); in test_relative()
86 CHECK_NOTCAPABLE(openat, etc_cap_base, "../etc/passwd", O_RDONLY); in test_relative()
93 CHECK_SYSCALL_SUCCEEDS(openat, etc_cap_all, "../etc/passwd", O_RDONLY); in test_relative()
[all …]
/freebsd/lib/libutil/
H A Dpw_util.343 .Nd "functions for passwd file handling"
50 .Fn pw_copy "int ffd" "int tfd" "const struct passwd *pw" "struct passwd *oldpw"
52 .Fn pw_dup "const struct passwd *pw"
56 .Fn pw_equal "const struct passwd *pw1" "const struct passwd *pw2"
62 .Fn pw_initpwd "struct passwd *pw"
64 .Fn pw_make "const struct passwd *pw"
66 .Fn pw_make_v7 "const struct passwd *pw"
128 .Vt struct passwd
135 .Vt struct passwd
164 .Vt struct passwd
[all …]
/freebsd/usr.sbin/periodic/etc/daily/
H A D200.backup-passwd15 if [ ! -f /etc/master.passwd ]
17 echo '$daily_backup_passwd_enable" is set but /etc/master.passwd' \
30 echo "Backup passwd and group files:"
32 if [ ! -f $bak/master.passwd.bak ]
35 echo "no $bak/master.passwd.bak"
36 cp -p /etc/master.passwd $bak/master.passwd.bak || rc=3
39 if ! cmp -s $bak/master.passwd.bak /etc/master.passwd
42 echo "$host passwd diffs:"
43 diff ${daily_diff_flags} -I '^#' $bak/master.passwd.bak /etc/master.passwd |\
45 mv $bak/master.passwd.bak $bak/master.passwd.bak2
[all …]
/freebsd/tests/sys/cddl/zfs/tests/xattr/
H A Dxattr_011_pos.ksh67 create_xattr $TESTDIR/myfile.${TESTCASE_ID} passwd /etc/passwd
78 create_xattr $TESTDIR/cpio.${TESTCASE_ID} passwd /etc/passwd
84 log_mustnot eval "$RUNAT $TESTDIR/cpio.${TESTCASE_ID} $CAT passwd > /dev/null 2>&1"
88 log_must eval "$RUNAT $TESTDIR/cpio.${TESTCASE_ID} $CAT passwd > /dev/null 2>&1"
92 log_mustnot eval "$RUNAT $TESTDIR/cpio.${TESTCASE_ID} $CAT passwd > /dev/null 2>&1"
96 log_mustnot eval "$RUNAT $TESTDIR/cpio.${TESTCASE_ID} $CAT passwd > /dev/null 2>&1"
104 compare_xattrs $TESTDIR/myfile.${TESTCASE_ID} $TESTDIR/myfile2.${TESTCASE_ID} passwd
109 log_mustnot eval "$RUNAT $TESTDIR/myfile2.${TESTCASE_ID} $LS passwd > /dev/null 2>&1"
138 create_xattr $TESTDIR/mvfile.${TESTCASE_ID} passwd /etc/passwd
140 verify_xattr $TESTDIR/mvfile2.${TESTCASE_ID} passwd /etc/passwd
[all …]
/freebsd/share/man/man5/
H A Dpasswd.51 .\" $NetBSD: passwd.5,v 1.12.2.2 1999/12/17 23:14:50 he Exp $
35 .Nm passwd ,
36 .Nm master.passwd ,
45 .Sq Li passwd
51 .Sq Li passwd.byname ,
52 .Sq Li passwd.byuid ,
53 .Sq Li master.passwd.byname ,
55 .Sq Li master.passwd.byuid ,
63 .Nm master.passwd
98 .Nm master.passwd
[all …]
/freebsd/usr.sbin/pw/tests/
H A Dhelper_functions.shin11 cp ${TESTDIR}/master.passwd ${HOME} || \
12 atf_fail "Populating master.passwd in ${HOME}"
15 # Generate the passwd file
16 pwd_mkdb -p -d ${HOME} ${HOME}/master.passwd || \
17 atf_fail "generate passwd from master.passwd"
23 cp ${TESTDIR}/master.passwd ${HOME}/etc || \
24 atf_fail "Populating master.passwd in ${HOME}/etc"
28 # Generate the passwd file
29 pwd_mkdb -p -d ${HOME}/etc ${HOME}//etc/master.passwd || \
30 atf_fail "generate passwd from master.passwd"
/freebsd/contrib/capsicum-test/
H A Dopenat.cc72 EXPECT_OPEN_OK(openat(etc, "/etc/passwd", O_RDONLY)); in FORK_TEST()
73 EXPECT_OPEN_OK(openat(AT_FDCWD, "/etc/passwd", O_RDONLY)); in FORK_TEST()
74 EXPECT_OPEN_OK(openat(etc, "passwd", O_RDONLY)); in FORK_TEST()
75 EXPECT_OPEN_OK(openat(etc, "../etc/passwd", O_RDONLY)); in FORK_TEST()
79 EXPECT_OPEN_OK(openat(etc_cap_ro, "passwd", O_RDONLY)); in FORK_TEST()
80 EXPECT_OPEN_OK(openat(etc_cap_base, "passwd", O_RDONLY)); in FORK_TEST()
84 EXPECT_OPEN_OK(openat(etc_cap_ro, "/etc/passwd", O_RDONLY)); in FORK_TEST()
85 EXPECT_OPEN_OK(openat(etc_cap_base, "/etc/passwd", O_RDONLY)); in FORK_TEST()
87 EXPECT_OPENAT_FAIL_TRAVERSAL(etc_cap_ro, "../etc/passwd", O_RDONLY); in FORK_TEST()
88 EXPECT_OPENAT_FAIL_TRAVERSAL(etc_cap_base, "../etc/passwd", O_RDONLY); in FORK_TEST()
[all …]
/freebsd/usr.sbin/rpc.yppasswdd/
H A Drpc.yppasswdd.839 .Op Fl t Ar master.passwd template file
64 .Pa /var/yp/master.passwd
66 .Pa master.passwd
68 .Pa passwd
105 .Pa /var/yp/master.passwd )
121 sophisticated updates on the NIS passwd maps.
123 any field in any user's master.passwd entry in any domain, and can
141 .It Fl t Ar master.passwd template file
145 .Pa master.passwd
147 .Pa passwd
[all …]
/freebsd/contrib/one-true-awk/testdir/
H A DT.redir5 $awk '{ print >"foo" }' /etc/passwd
6 diff foo /etc/passwd || echo 'BAD: T.redir (print >"foo")'
9 $awk '{ print >>"foo" }' /etc/passwd
10 diff foo /etc/passwd || echo 'BAD: T.redir (print >>"foo")'
14 NR%2 == 0 { print >"foo" }' /etc/passwd
15 diff foo /etc/passwd || echo 'BAD: T.redir (print > and >>"foo")'
18 $awk '{ print | "cat >foo" }' /etc/passwd
19 diff foo /etc/passwd || echo 'BAD: T.redir (print | "cat >foo")'
31 $awk '{ print >"/dev/stderr" }' /etc/passwd 1>foo1 2>foo2
32 diff foo2 /etc/passwd || echo 'BAD: T.redir (print >"/dev/stderr")'
[all …]
H A DT.getline27 while (getline <"/etc/passwd")
32 cmp -s /etc/passwd foo || echo 'BAD: T.getline (getline <file)'
34 cat /etc/passwd | $awk '
41 cmp -s /etc/passwd foo || echo 'BAD: T.getline (getline <"-")'
49 ' /etc/passwd >foo
50 cmp -s /etc/passwd foo || echo 'BAD: T.getline (getline <arg)'
58 ' /etc/passwd >foo
59 cmp -s /etc/passwd foo || echo 'BAD: T.getline (getline x <arg)'
67 ' /etc/passwd >foo
68 cmp -s /etc/passwd foo || echo 'BAD: T.getline (cat arg | getline)'
[all …]
/freebsd/usr.bin/chpass/
H A Dchpass.h43 struct passwd;
47 int (*func)(char *, struct passwd *, struct _entry *);
65 struct passwd *edit(const char *, struct passwd *);
68 int p_change(char *, struct passwd *, ENTRY *);
69 int p_class(char *, struct passwd *, ENTRY *);
70 int p_expire(char *, struct passwd *, ENTRY *);
71 int p_gecos(char *, struct passwd *, ENTRY *);
72 int p_gid(char *, struct passwd *, ENTRY *);
73 int p_hdir(char *, struct passwd *, ENTRY *);
74 int p_login(char *, struct passwd *, ENTRY *);
[all …]
/freebsd/lib/libc/gen/
H A Dgetpwent.c94 int __pw_parse_entry(char *, size_t, struct passwd *, int, int *errnop);
101 static struct passwd *getpw(int (*fn)(union key, struct passwd *, char *,
102 size_t, struct passwd **), union key);
103 static int wrap_getpwnam_r(union key, struct passwd *, char *,
104 size_t, struct passwd **);
105 static int wrap_getpwuid_r(union key, struct passwd *, char *, size_t,
106 struct passwd **);
107 static int wrap_getpwent_r(union key, struct passwd *, char *, size_t,
108 struct passwd **);
112 static int pwdb_parse_entry_v3(char *, size_t, struct passwd *, int *);
[all …]
H A Dgetpwent.349 .Fn getpwent_r "struct passwd *pwd" "char *buffer" "size_t bufsize" "struct passwd **result"
53 .Fn getpwnam_r "const char *name" "struct passwd *pwd" "char *buffer" "size_t bufsize" "struct pass…
57 .Fn getpwuid_r "uid_t uid" "struct passwd *pwd" "char *buffer" "size_t bufsize" "struct passwd **re…
69 .Xr passwd 5 .
71 .Vt passwd
76 struct passwd {
176 return a valid pointer to a passwd structure on success
210 .Bl -tag -width /etc/master.passwd -compact
215 .It Pa /etc/master.passwd
217 .It Pa /etc/passwd
[all …]
/freebsd/sys/contrib/libsodium/test/default/
H A Dpwhash_scrypt.c93 char passwd[256]; in tv() local
100 sodium_hex2bin((unsigned char *) passwd, sizeof passwd, in tv()
106 out, (unsigned long long) tests[i].outlen, passwd, in tv()
142 char passwd[256]; in tv2() local
149 sodium_hex2bin((unsigned char *) passwd, sizeof passwd, in tv2()
155 out, (unsigned long long) tests[i].outlen, passwd, in tv2()
169 const char *passwd; in tv3() member
278 char * passwd; in tv3() local
285 passwd = (char *) sodium_malloc(strlen(tests[i].passwd) + 1U); in tv3()
286 assert(passwd != NULL); in tv3()
[all …]
H A Dpwhash_argon2id.c81 char passwd[256]; in tv() local
88 sodium_hex2bin((unsigned char *) passwd, sizeof passwd, in tv()
93 if (crypto_pwhash(out, (unsigned long long) tests[i].outlen, passwd, in tv()
133 char passwd[256]; in tv2() local
140 sodium_hex2bin((unsigned char *) passwd, sizeof passwd, in tv2()
145 if (crypto_pwhash(out, (unsigned long long) tests[i].outlen, passwd, in tv2()
188 const char *passwd; in tv3() member
205 char *passwd; in tv3() local
213 passwd = (char *) sodium_malloc(strlen(tests[i].passwd) + 1U); in tv3()
214 assert(passwd != NULL); in tv3()
[all …]
H A Dpwhash_argon2i.c81 char passwd[256]; in tv() local
88 sodium_hex2bin((unsigned char *) passwd, sizeof passwd, in tv()
93 if (crypto_pwhash(out, (unsigned long long) tests[i].outlen, passwd, in tv()
133 char passwd[256]; in tv2() local
140 sodium_hex2bin((unsigned char *) passwd, sizeof passwd, in tv2()
145 if (crypto_pwhash(out, (unsigned long long) tests[i].outlen, passwd, in tv2()
192 const char *passwd; in tv3() member
209 char *passwd; in tv3() local
217 passwd = (char *) sodium_malloc(strlen(tests[i].passwd) + 1U); in tv3()
218 assert(passwd != NULL); in tv3()
[all …]
/freebsd/crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/
H A Dpasstest.c15 HASHINFO passwd; in main() local
25 passwd.bsize = 1024; in main()
26 passwd.cachesize = 1024 * 1024; in main()
27 passwd.ffactor = 10; in main()
28 passwd.hash = NULL; in main()
29 passwd.nelem = 0; in main()
30 passwd.lorder = 4321; in main()
33 db = dbopen("/usr/tmp/passwd.db", O_RDWR|O_CREAT|O_TRUNC|O_BINARY, 0664, DB_HASH, in main()
34 &passwd); in main()
69 db = dbopen("/usr/tmp/passwd.db", O_RDWR|O_BINARY, 0664, DB_HASH, &passwd); in main()
[all …]
/freebsd/include/
H A Dpwd.h64 #define _PATH_PASSWD "/etc/passwd"
65 #define _PASSWD "passwd"
66 #define _PATH_MASTERPASSWD "/etc/master.passwd"
67 #define _MASTERPASSWD "master.passwd"
111 struct passwd { struct
147 struct passwd *getpwnam(const char *);
148 struct passwd *getpwuid(uid_t);
152 struct passwd *getpwent(void);
157 int getpwnam_r(const char *, struct passwd *, char *, size_t,
158 struct passwd **);
[all …]
/freebsd/usr.sbin/ypserv/
H A DMakefile.yp21 # from the master.passwd file, reset this variable (SHADOW=) in
26 # (i.e. clients who expect the password field in the passwd maps to be
28 # This will cause $YPDIR/passwd to be generated with valid password
30 # master.passwd and shadow maps (which have real encrypted passwords
43 # Normally, the master.passwd.* and shadow.* maps are guarded against access
87 # NIS passwd and master.passwd files are stored in /var/yp: the server's
89 # the real /etc/passwd and /etc/master.passwd files by:
92 # - invoking yppasswdd with `-t /etc/master.passwd' (yppasswdd will do a
93 # 'pwd_mkdb' as needed if /etc/master.passwd is thus specified).
94 # - Specifying the location of the master.passwd file using the
[all …]
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_pwhash/
H A Dcrypto_pwhash.c130 const char * const passwd, unsigned long long passwdlen, in crypto_pwhash() argument
136 return crypto_pwhash_argon2i(out, outlen, passwd, passwdlen, salt, in crypto_pwhash()
139 return crypto_pwhash_argon2id(out, outlen, passwd, passwdlen, salt, in crypto_pwhash()
149 const char * const passwd, unsigned long long passwdlen, in crypto_pwhash_str() argument
152 return crypto_pwhash_argon2id_str(out, passwd, passwdlen, in crypto_pwhash_str()
158 const char * const passwd, unsigned long long passwdlen, in crypto_pwhash_str_alg() argument
163 return crypto_pwhash_argon2i_str(out, passwd, passwdlen, in crypto_pwhash_str_alg()
166 return crypto_pwhash_argon2id_str(out, passwd, passwdlen, in crypto_pwhash_str_alg()
175 const char * const passwd, in crypto_pwhash_str_verify() argument
180 return crypto_pwhash_argon2id_str_verify(str, passwd, passwdlen); in crypto_pwhash_str_verify()
[all …]
/freebsd/lib/libc/net/
H A Dnss_compat.c47 struct passwd;
190 DECLARE_TERMINATOR(passwd);
196 int (*fn)(const char *, struct passwd *, char *, size_t, int *); in __nss_compat_getpwnam_r()
198 struct passwd *pwd; in __nss_compat_getpwnam_r()
206 pwd = va_arg(ap, struct passwd *); in __nss_compat_getpwnam_r()
213 *(struct passwd **)retval = pwd; in __nss_compat_getpwnam_r()
221 int (*fn)(uid_t, struct passwd *, char *, size_t, int *); in __nss_compat_getpwuid_r()
223 struct passwd *pwd; in __nss_compat_getpwuid_r()
231 pwd = va_arg(ap, struct passwd *); in __nss_compat_getpwuid_r()
238 *(struct passwd **)retval = pwd; in __nss_compat_getpwuid_r()
[all …]
/freebsd/lib/libcasper/services/cap_pwd/
H A Dcap_pwd.354 …n cap_getpwent_r "cap_channel_t *chan" "struct passwd *pwd" "char *buffer" "size_t bufsize" "struc…
56 …ap_channel_t *chan" "const char *name" "struct passwd *pwd" "char *buffer" "size_t bufsize" "struc…
58 …id_r "cap_channel_t *chan" "uid_t uid" "struct passwd *pwd" "char *buffer" "size_t bufsize" "struc…
124 .Vt passwd .
176 struct passwd *passwd;
207 passwd = cap_getpwuid(cappwd, uid[0]);
208 if (passwd == NULL)
211 printf("UID %d is associated with name %s.\\n", uid[0], passwd->pw_name);

12345678910>>...37