I just ran into the same problem on Ubuntu 16.04:
$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.2 LTS Release: 16.04 Codename: xenial $ cat /etc/default/useradd SHELL=/bin/bash $ useradd -D GROUP=100 HOME=/home INACTIVE=-1 EXPIRE= SHELL=/bin/bash SKEL=/etc/skel CREATE_MAIL_SPOOL=no $ sudo useradd testuser $ getent passwd testuser testuser:x:1081:1082::/home/testuser:
I expected testuser to show /bin/bash for the shell, but that's not the case.
I just ran into the same problem on Ubuntu 16.04:
$ lsb_release -a useradd MAIL_SPOOL= no x:1081: 1082::/ home/testuser:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial
$ cat /etc/default/
SHELL=/bin/bash
$ useradd -D
GROUP=100
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel
CREATE_
$ sudo useradd testuser
$ getent passwd testuser
testuser:
I expected testuser to show /bin/bash for the shell, but that's not the case.