#
37c7698a |
| 03-Feb-2023 |
Aaron LI <aly@aaronly.me> |
tools/pw-update.sh: Adjust primary group of new users only necessary
When the primary group of new user exists, just use it, and thus avoid unnecessary group adjustments for new users.
|
#
54af8c6b |
| 03-Feb-2023 |
Aaron LI <aly@aaronly.me> |
tools/pw-update.sh: 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 'pw-update.sh' t
tools/pw-update.sh: 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 'pw-update.sh' 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 case.
Bug: https://bugs.dragonflybsd.org/issues/3332
show more ...
|
Revision tags: v6.4.0, v6.4.0rc1, v6.5.0, v6.2.2, v6.2.1, v6.2.0, v6.3.0, v6.0.1, v6.0.0, v6.0.0rc1, v6.1.0 |
|
#
7f8f07e3 |
| 29-Dec-2020 |
Aaron LI <aly@aaronly.me> |
tools/pw-update.sh: No need to invoke pwd_mkdb(8)
The pw(8) utility already handles the database update, so no need to manually invoke the pwd_mkdb(8).
|
#
1bc30ec4 |
| 29-Dec-2020 |
Aaron LI <aly@aaronly.me> |
tools/pw-update.sh: Improve to update user/group
Before this change, this script would only add new users and/or groups, but wouldn't modify existing users/groups. This change add this ability.
|
#
04e50ef7 |
| 27-Dec-2020 |
Aaron LI <aly@aaronly.me> |
tools: Add pw-update.sh to add new users and groups
This script is derived my 'dfly-update' tool [1], and will be used in 'make upgrade' to help add new users and groups.
[1] https://github.com/liw
tools: Add pw-update.sh to add new users and groups
This script is derived my 'dfly-update' tool [1], and will be used in 'make upgrade' to help add new users and groups.
[1] https://github.com/liweitianux/dfly-update
show more ...
|