This question already has an answer here:
I am adding a user named 'test' in my Ubuntu 18.04 server. When I add the user using
adduser, like this:
sudo adduser --system --group test --shell /bin/bash
all goes well, I can login fine, but .bashrc, .bash_logout and .bash_profile are not made by default in the home dir. Whereas when I added the user using
useradd like this:
sudo useradd -m test -s /bin/bash
the user is added in the same way as
adduser and I have a preconfigured .bash_profile, .bashrc and .bash_logout in the home dir.
Can someone explain why is there a difference ? Am I missing any flag in
adduser usage ?