adduser/addgroup: support specifying uid/gid, add system

account creation mode. By Tito.

function                                             old     new   delta
adduser_main                                         650     726     +76
addgroup_main                                        341     402     +61
addgroup_longopts                                      -      16     +16
adduser_longopts                                      97     103      +6
packed_usage                                       26161   26163      +2
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 4/0 up/down: 161/0)             Total: 161 bytes
This commit is contained in:
Denis Vlasenko
2009-04-22 21:35:52 +00:00
parent c8d7109f60
commit c2931aa2df
4 changed files with 113 additions and 43 deletions

View File

@@ -39,6 +39,7 @@
"Add a group " IF_FEATURE_ADDUSER_TO_GROUP("or add a user to a group") "\n" \
"\nOptions:" \
"\n -g GID Group id" \
"\n -S Create a system group" \
#define adduser_trivial_usage \
"[OPTIONS] user_name"
@@ -52,6 +53,7 @@
"\n -S Create a system user" \
"\n -D Do not assign a password" \
"\n -H Do not create home directory" \
"\n -u UID User id" \
#define adjtimex_trivial_usage \
"[-q] [-o offset] [-f frequency] [-p timeconstant] [-t tick]"