/systemd-251/src/tmpfiles/ |
D | meson.build | 5 '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/ |
D | testsuite-54.sh | 9 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 \
|
D | testsuite-46.sh | 66 PASSWORD=xEhErW0ndafV4s NEWPASSWORD=yPN4N0fYNKUkOq homectl passwd test-user 72 SYSTEMD_LOG_LEVEL=debug PASSWORD=yPN4N0fYNKUkOq NEWPASSWORD=xEhErW0ndafV4s homectl passwd test-user
|
/systemd-251/docs/ |
D | CONVERTING_TO_HOMED.md | 11 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,
|
D | UIDS-GIDS.md | 48 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` |
|
D | USER_RECORD.md | 11 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 …]
|
D | CREDENTIALS.md | 324 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/ |
D | userdb-glue.h | 13 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…
|
D | nss-systemd.c | 22 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()
|
D | userdb-glue.c | 25 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/ |
D | systemd-sysusers.service | 28 LoadCredential=passwd.hashed-password.root 29 LoadCredential=passwd.plaintext-password.root 30 LoadCredential=passwd.shell.root
|
D | systemd-firstboot.service | 32 LoadCredential=passwd.hashed-password.root 33 LoadCredential=passwd.plaintext-password.root 34 LoadCredential=passwd.shell.root
|
/systemd-251/src/basic/ |
D | nss-util.h | 121 struct passwd *pwd, \ 126 struct passwd *pwd, \ 162 struct passwd *result, \ 255 struct passwd *pwd, 260 struct passwd *pwd,
|
D | user-util.c | 213 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()
|
D | user-util.h | 121 int fgetpwent_sane(FILE *stream, struct passwd **pw); 124 int putpwent_sane(const struct passwd *pw, FILE *stream);
|
/systemd-251/test/ |
D | test-sysusers.sh.in | 17 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/ |
D | sysusers.c | 156 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/ |
D | firstboot.c | 728 _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/ |
D | user-record-nss.h | 14 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);
|
D | user-record-nss.c | 39 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/ |
D | test-5.input | 2 # Reproduce the base-passwd master.{passwd,group} from Debian
|
/systemd-251/src/test/ |
D | test-nss-users.c | 26 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/ |
D | github-19178 | 3 LoadCredential=passwd.hashed-password.root
|
/systemd-251/factory/etc/ |
D | nsswitch.conf | 3 passwd: compat systemd
|
/systemd-251/src/nss-mymachines/ |
D | nss-mymachines.c | 408 struct passwd *pwd, in _nss_mymachines_getpwnam_r() 417 struct passwd *pwd, in _nss_mymachines_getpwuid_r()
|