Debian Adduser Developers,

Also "sudo apt install openssh-server" warns:
    useradd warning: sshd's uid 116 outside of the UID_MIN 1000 and
UID_MAX 60000 range.

Tested patch which keeps options in alphabetic order is below.

Thank you!
Daniel Lewart
Urbana, Illinois
---
diff -ru a/usr/sbin/adduser b/usr/sbin/adduser
--- a/usr/sbin/adduser    2018-09-15 14:12:39.000000000 -0500
+++ b/usr/sbin/adduser    2022-02-25 00:00:00.000000000 -0600
@@ -434,7 +434,7 @@
     $shell = $special_shell || '/usr/sbin/nologin';
     $undouser = $new_name;
     my $useradd = &which('useradd');
-    &systemcall($useradd, '-d', $home_dir, '-g', $ingroup_name, '-s',
+    &systemcall($useradd, '-d', $home_dir, '-g', $ingroup_name, '-r', '-s',
         $shell, '-u', $new_uid, $new_name);
     if(!$disabled_login) {
         my $usermod = &which('usermod');

Reply via email to