Lines Matching refs:passwd
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()
510 r = fflush_and_check(passwd); in write_temporary_passwd()
514 *tmpfile = TAKE_PTR(passwd); in write_temporary_passwd()
845 _cleanup_fclose_ FILE *passwd = NULL, *group = NULL, *shadow = NULL, *gshadow = NULL; in write_files() local
863 r = write_temporary_passwd(passwd_path, &passwd, &passwd_tmp); in write_files()
883 if (passwd) { in write_files()
914 if (passwd) { in write_files()
967 struct passwd *p; in uid_is_ok()
1072 struct passwd *p; in add_user()
1174 struct passwd *p; in gid_is_ok()