]> git.ipfire.org Git - thirdparty/shadow.git/commit
newusers: allow not passing a password
authorAntonio Terceiro <terceiro@debian.org>
Sun, 24 Aug 2025 13:59:07 +0000 (10:59 -0300)
committerSerge Hallyn <serge@hallyn.com>
Fri, 5 Dec 2025 14:51:32 +0000 (08:51 -0600)
commita6f5520d1ad1bfecddbd3000592f9b60e43fab33
treea6b92faffd25f4d7bc028e993c4bddb3864f9a11
parent2f18e7c0b674a2b4005a2837322f90a4cf54aab5
newusers: allow not passing a password

A possible use case for this is wanting to add subuid/subgid entries for
an existing user. This change makes it possible to pass `username::::::`
to newusers; the empty password will be ignored an everything else will
be done. Currently this fails miserably, as PAM errors out on a empty
password.

Signed-off-by: Antonio Terceiro <terceiro@debian.org>
man/newusers.8.xml
src/newusers.c