Sometimes, in Ubuntu, user created will not get the correct shell, particularly will be /bin/sh shell. This /bin/sh shell is limited and will not be able to use the .bashrc configurations.
In order to fix this, reset the user’s shell to /bin/bash by running the following command via root user.
# chsh -s /bin/bash <username>
For future new user, you can directly specify the shell when creating the user.
# useradd -m -s /bin/bash <username>