From: Shadow package maintainers Date: Mon, 4 Jun 2012 01:37:48 +0000 Subject: 542_useradd-O_option Note: useradd.8 needs to be regenerated. Status wrt upstream: not included as this is just specific backward compatibility for Debian --- man/useradd.8.xml | 5 +++++ src/useradd.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) Index: b/man/useradd.8.xml =================================================================== --- a/man/useradd.8.xml 2013-07-27 19:33:17.416209819 +0400 +++ b/man/useradd.8.xml 2013-07-27 19:33:19.823730279 +0400 @@ -340,6 +340,11 @@ databases are resetted to avoid reusing the entry from a previously deleted user. + + For the compatibility with previous Debian's + useradd, the option is + also supported. + Index: b/src/useradd.c =================================================================== --- a/src/useradd.c 2013-07-27 19:32:50.976096183 +0400 +++ b/src/useradd.c 2013-07-27 19:33:19.826786636 +0400 @@ -1011,9 +1011,9 @@ }; while ((c = getopt_long (argc, argv, #ifdef WITH_SELINUX - "b:c:d:De:f:g:G:hk:K:lmMNop:rR:s:u:UZ:", + "b:c:d:De:f:g:G:hk:O:K:lmMNop:rR:s:u:UZ:", #else /* !WITH_SELINUX */ - "b:c:d:De:f:g:G:hk:K:lmMNop:rR:s:u:U", + "b:c:d:De:f:g:G:hk:O:K:lmMNop:rR:s:u:U", #endif /* !WITH_SELINUX */ long_options, NULL)) != -1) { switch (c) { @@ -1136,6 +1136,7 @@ kflg = true; break; case 'K': + case 'O': /* compatibility with previous Debian useradd */ /* * override login.defs defaults (-K name=value) * example: -K UID_MIN=100 -K UID_MAX=499