Home
last modified time | relevance | path

Searched refs:passwd (Results 1 – 25 of 46) sorted by relevance

12

/systemd-251/src/tmpfiles/
Dmeson.build5 'offline-passwd.c',
6 'offline-passwd.h')
9 [files('test-offline-passwd.c',
10 'offline-passwd.c',
11 'offline-passwd.h')],
/systemd-251/test/units/
Dtestsuite-54.sh9 systemd-run -p LoadCredential=passwd:/etc/passwd \
16 ( cat /etc/passwd /etc/shadow && echo -n wuff ) | cmp /tmp/ts54-concat
57 systemd-run -p LoadCredential=passwd:/etc/passwd \
62 systemd-run -p LoadCredential=passwd:/etc/passwd \
Dtestsuite-46.sh66 PASSWORD=xEhErW0ndafV4s NEWPASSWORD=yPN4N0fYNKUkOq homectl passwd test-user
72 SYSTEMD_LOG_LEVEL=debug PASSWORD=yPN4N0fYNKUkOq NEWPASSWORD=xEhErW0ndafV4s homectl passwd test-user
/systemd-251/docs/
DCONVERTING_TO_HOMED.md11 via entries in `/etc/passwd`, `/etc/shadow`, `/etc/group` and
48 2. Have a look at your existing user record, as stored in `/etc/passwd` and
53 getent passwd foobar
57 This will tell you the `/etc/passwd` and `/etc/shadow` entries for your
59 [passwd(5)](http://man7.org/linux/man-pages/man5/passwd.5.html) and
62 The fourth field in the `getent passwd foobar` output tells you the GID of
81 3. Now edit your `/etc/passwd` file and remove your existing record
97 i.e. the third field of the `getent passwd foobar` output above. Similar,
DUIDS-GIDS.md48 without `/etc/passwd`.
121 `/etc/passwd`.
146 providing an NSS module, or by adding entries directly to `/etc/passwd` and
233 follow this scheme no changes to `/etc/passwd` need to be made, thus minimizing
261 | 0 | `root` user | Linux | `/etc/passwd` + `nss-systemd` |
262 | 1…4 | System users | Distributions | `/etc/passwd` |
263 | 5 | `tty` group | `systemd` | `/etc/passwd` |
264 | 6…999 | System users | Distributions | `/etc/passwd` |
265 | 1000…60000 | Regular users | Distributions | `/etc/passwd` + LDAP/NIS/… |
271 | 65534 | `nobody` user | Linux | `/etc/passwd` + `nss-systemd` |
DUSER_RECORD.md11 glibc NSS) `struct passwd`. Various components of systemd are able to provide
46 passwd`, and are extensible for other applications. For example, the record may
215 optional. Corresponds with the `pw_name` field of of `struct passwd` and the
235 classic UNIX user records. When converting a `struct passwd` to a JSON user
240 as record separators in classic `/etc/passwd` files and similar formats.
285 this user. This corresponds with the `pw_shell` field of `struct passwd`, and
436 to during log-in. It corresponds to the `pw_dir` field of `struct passwd`.
439 use for the user. This corresponds to the `pw_uid` field of `struct passwd`.
443 `struct passwd`.
630 field of `struct passwd`).
[all …]
DCREDENTIALS.md324 will look for the credentials `passwd.hashed-password.<username>`,
325 `passwd.plaintext-password.<username>` and `passwd.shell.<username>` to
341 --set-credential=passwd.hashed-password.root:$(mkpasswd mysecret) \
366 … -fw_cfg name=opt/io.systemd.credentials/passwd.hashed-password.root,string=$(mkpasswd mysecret) \
/systemd-251/src/nss-systemd/
Duserdb-glue.h13 int nss_pack_user_record(UserRecord *hr, struct passwd *pwd, char *buffer, size_t buflen);
19 enum nss_status userdb_getpwnam(const char *name, struct passwd *pwd, char *buffer, size_t buflen, …
20 enum nss_status userdb_getpwuid(uid_t uid, struct passwd *pwd, char *buffer, size_t buflen, int *er…
Dnss-systemd.c22 static const struct passwd root_passwd = {
44 static const struct passwd nobody_passwd = {
143 struct passwd *dest, in copy_synthesized_passwd()
144 const struct passwd *src, in copy_synthesized_passwd()
289 struct passwd *pwd, in _nss_systemd_getpwnam_r()
337 struct passwd *pwd, in _nss_systemd_getpwuid_r()
676 struct passwd *result, in _nss_systemd_getpwent_r()
Duserdb-glue.c25 struct passwd *pwd, in nss_pack_user_record()
52 *pwd = (struct passwd) { in nss_pack_user_record()
71 struct passwd *pwd, in userdb_getpwnam()
103 struct passwd *pwd, in userdb_getpwuid()
/systemd-251/units/
Dsystemd-sysusers.service28 LoadCredential=passwd.hashed-password.root
29 LoadCredential=passwd.plaintext-password.root
30 LoadCredential=passwd.shell.root
Dsystemd-firstboot.service32 LoadCredential=passwd.hashed-password.root
33 LoadCredential=passwd.plaintext-password.root
34 LoadCredential=passwd.shell.root
/systemd-251/src/basic/
Dnss-util.h121 struct passwd *pwd, \
126 struct passwd *pwd, \
162 struct passwd *result, \
255 struct passwd *pwd,
260 struct passwd *pwd,
Duser-util.c213 struct passwd *p; in get_user_creds()
388 struct passwd pwbuf, *pw = NULL; in uid_to_name()
560 struct passwd *p; in get_home_dir()
617 struct passwd *p; in get_shell()
962 int putpwent_sane(const struct passwd *pw, FILE *stream) { in putpwent_sane()
1008 int fgetpwent_sane(FILE *stream, struct passwd **pw) { in fgetpwent_sane()
1009 struct passwd *p; in fgetpwent_sane()
Duser-util.h121 int fgetpwent_sane(FILE *stream, struct passwd **pw);
124 int putpwent_sane(const struct passwd *pw, FILE *stream);
/systemd-251/test/
Dtest-sysusers.sh.in17 rm -f $TESTDIR/etc/*{passwd,group,shadow}
18 for i in $1.initial-{passwd,group,shadow}; do
34 if ! diff -u $TESTDIR/etc/passwd <(preprocess $1.expected-passwd $3); then
/systemd-251/src/sysusers/
Dsysusers.c156 struct passwd *pw; in load_user_database()
398 _cleanup_fclose_ FILE *original = NULL, *passwd = NULL; in write_temporary_passwd() local
400 struct passwd *pw = NULL; in write_temporary_passwd()
412 r = fopen_temporary_label("/etc/passwd", passwd_path, &passwd, &passwd_tmp); in write_temporary_passwd()
423 r = copy_rights_with_fallback(fileno(original), fileno(passwd), passwd_tmp); in write_temporary_passwd()
444 r = putpwent_sane(pw, passwd); in write_temporary_passwd()
455 if (fchmod(fileno(passwd), 0644) < 0) in write_temporary_passwd()
462 struct passwd n = { in write_temporary_passwd()
490 r = putpwent_sane(&n, passwd); in write_temporary_passwd()
498 r = putpwent_sane(pw, passwd); in write_temporary_passwd()
[all …]
/systemd-251/src/firstboot/
Dfirstboot.c728 _cleanup_fclose_ FILE *original = NULL, *passwd = NULL; in write_root_passwd() local
734 r = fopen_temporary_label("/etc/passwd", passwd_path, &passwd, &passwd_tmp); in write_root_passwd()
740 struct passwd *i; in write_root_passwd()
742 r = copy_rights(fileno(original), fileno(passwd)); in write_root_passwd()
754 r = putpwent_sane(i, passwd); in write_root_passwd()
762 struct passwd root = { in write_root_passwd()
775 r = fchmod(fileno(passwd), 0644); in write_root_passwd()
779 r = putpwent_sane(&root, passwd); in write_root_passwd()
784 r = fflush_sync_and_check(passwd); in write_root_passwd()
891 struct passwd *p; in process_root_args()
/systemd-251/src/shared/
Duser-record-nss.h14 int nss_passwd_to_user_record(const struct passwd *pwd, const struct spwd *spwd, UserRecord **ret);
15 int nss_spwd_for_passwd(const struct passwd *pwd, struct spwd *ret_spwd, char **ret_buffer);
Duser-record-nss.c39 const struct passwd *pwd, in nss_passwd_to_user_record()
168 int nss_spwd_for_passwd(const struct passwd *pwd, struct spwd *ret_spwd, char **ret_buffer) { in nss_spwd_for_passwd()
212 struct passwd pwd, *result; in nss_user_record_by_name()
270 struct passwd pwd, *result; in nss_user_record_by_uid()
/systemd-251/test/test-sysusers/
Dtest-5.input2 # Reproduce the base-passwd master.{passwd,group} from Debian
/systemd-251/src/test/
Dtest-nss-users.c26 static void print_struct_passwd(const struct passwd *pwd) { in print_struct_passwd()
54 struct passwd pwd; in test_getpwnam_r()
106 struct passwd pwd; in test_getpwuid_r()
/systemd-251/test/fuzz/fuzz-unit-file/
Dgithub-191783 LoadCredential=passwd.hashed-password.root
/systemd-251/factory/etc/
Dnsswitch.conf3 passwd: compat systemd
/systemd-251/src/nss-mymachines/
Dnss-mymachines.c408 struct passwd *pwd, in _nss_mymachines_getpwnam_r()
417 struct passwd *pwd, in _nss_mymachines_getpwuid_r()

12