]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/firstboot/firstboot.c
firstboot: don't create /etc/passwd with mode 000
[thirdparty/systemd.git] / src / firstboot / firstboot.c
index 82cd4040f9cfd1935e382eec8738f723128335ef..807a4f57291466268be584d78802f081f0bc2187 100644 (file)
@@ -685,7 +685,7 @@ static int write_root_passwd(const char *passwd_path, const char *password, cons
                 if (errno != ENOENT)
                         return -errno;
 
-                r = fchmod(fileno(passwd), 0000);
+                r = fchmod(fileno(passwd), 0644);
                 if (r < 0)
                         return -errno;