From bbbfe49b5eb0c571c10fa7991c10bac620f3c453 Mon Sep 17 00:00:00 2001 From: nl6720 Date: Wed, 30 Sep 2020 08:09:25 +0300 Subject: [PATCH] sysusers: use "!*" instead of "!!" as an invalid group password This basically implements fc58c0c7bf7e4f525b916e3e5be0de2307fef04e for gshadow. gpasswd may not have a lock/unlock that behaves the same as passwd, but according to gshadow(5) the logic of the password field is the same. --- src/sysusers/sysusers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sysusers/sysusers.c b/src/sysusers/sysusers.c index 7349e9fcb9..cb94358a3a 100644 --- a/src/sysusers/sysusers.c +++ b/src/sysusers/sysusers.c @@ -693,7 +693,7 @@ static int write_temporary_gshadow(const char * gshadow_path, FILE **tmpfile, ch ORDERED_HASHMAP_FOREACH(i, todo_gids) { struct sgrp n = { .sg_namp = i->name, - .sg_passwd = (char*) "!!", + .sg_passwd = (char*) "!*", }; r = putsgent_with_members(&n, gshadow);