]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Revert "sysusers: properly mark generated accounts as locked"
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 21 Oct 2019 14:26:42 +0000 (16:26 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 22 Oct 2019 08:59:11 +0000 (17:59 +0900)
This reverts the gist of commit 636e72bce63e7e99b76357f7d524d16f61558775.
The comment and the tiny cleanup are left alone.

We shouldn't lock the accounts because people actually need to use them, and
if they are locked, various tools will refuse.
See https://github.com/systemd/systemd/pull/13277#issuecomment-529964578
and follow-up comments.

src/sysusers/sysusers.c

index 1fc1b0ae96162b3af5c1181cf9cdb02cab18a738..08a2df707bedf8b813da846385f60c6b294804b8 100644 (file)
@@ -528,7 +528,7 @@ static int write_temporary_shadow(const char *shadow_path, FILE **tmpfile, char
                         .sp_max = -1,
                         .sp_warn = -1,
                         .sp_inact = -1,
-                        .sp_expire = i->uid == 0 ? -1 : 1, /* lock account as a whole, unless this is root */
+                        .sp_expire = -1,
                         .sp_flag = (unsigned long) -1, /* this appears to be what everybody does ... */
                 };