I have Ubuntu 12.04 server running. I created user1 when I installed, and created user2 today with '1useradd' and I added it to all the same groups as user1.
But when I log in remotely using SSH, the prompt for user1 looks like this:
user1@host:~$
And the prompt for user2 looks like this:
$
Most importantly, the shell doesn't behave as nicely as I'm used to when I'm logged in as user2. There is no autocomplete of commands or files with tab, and I can't access the MRU with up.
adduser
anduseradd
I always useadduser
, it is the recommended "high level" routine, which also can/will create useful defaults for the new user, whereasuseradd
only generates the user and does nothing else.