Hey Serge.
On Sat, 2021-06-26 at 11:57 -0500, Serge E. Hallyn wrote: > adduser does not create the entries, but useradd does. That is > because > useradd ships from the shadow soure package, adduser does not. Doesn't adduser just invoke useradd internally? At least it *does* seem to add these entries, too: # adduser test99 Adding user `test99' ... Adding new group `test99' (1001) ... Adding new user `test99' (1001) with group `test99' ... Creating home directory `/home/test99' ... Copying files from `/etc/skel' ... New password: Retype new password: passwd: password updated successfully Changing the user information for test99 Enter the new value, or press ENTER for the default Full Name []: Room Number []: Work Phone []: Home Phone []: Other []: Is the information correct? [Y/n] y root@heisenberg:~# cat /etc/sub* test99:100000:65536 test99:100000:65536 > The fact that it doesn't happen for system users is not clearly > spelled > out, you're right. So that is in fact desired?! > Could adduser vs useradd explain it? Hmm given the above, I don't think so... also Debian maintainer scripts typically all use adduser/addgroup. > > You could script that through usermod, but it might be worth > explicitly > adding a usermod flag to say 'only add subuid if it doesn't already > have one' hmm ok. Cheers, Chris.