I have a fresh version of Ubuntu 16.04.1 installed and have tried to create a new user account through root
. I have changed the SHELL
line in /etc/default/useradd
to read as follows:
SHELL=/bin/bash
(it previously read /bin/sh
)
Executing useradd -D
provides the following output:
GROUP=100
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel
CREATE_MAIL_SPOOL=no
I then try to create a user as follows:
useradd -m -G sudo -c "David Buckley" david
Yet the default shell is still /bin/sh
. More specifically, the /etc/passwd
file reads as follows:
david:x:1000:1000:David Buckley:/home/david:
On a slightly, potentially related note, the new user does not receive sudo access. It is given the groups david sudo
, and the /etc/sudoers
file includes the lines (uncommented):
# Allow members of group sudo to execute any command
sudo ALL=(ALL:ALL) ALL
What might I be doing wrong to cause this?
%sudo
not justsudo
.