git: DragonFly_RELEASE_6_4 tools/ Allow to create user 'toor' of duplicate UID

Aaron LI aly at
Fri Feb 3 01:45:19 PST 2023

commit 628edbe6882b557537ab2ff29c10067c9a9c4ce6
Author: Aaron LI <aly at>
Date:   Fri Feb 3 09:49:23 2023 +0800

    tools/ Allow to create user 'toor' of duplicate UID
    The 'toor' user has duplicate UID of 0 as 'root', and it also has an
    empty shell field.  This caused problem for the '' to
    handle.  If the user/admin deliberately removed the 'toor' user, then
    this script was unable to add it back, which breaks the 'preinstall'
    target and thus 'installworld' failed.
    Use the '-o' option for 'pw useradd' to allow to create users of
    duplicate UIDs.  In addition, quote the shell field to handle the empty

Summary of changes:
 tools/ | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list