This question already has an answer here:
I created a new non-root user and did the following:
useradd -m newusername passwd newusername usermod -a -G sudo newusername chsh -s /bin/bash newusername
I need to install software as a non-root user, but when I'm logged in as that user,
does nothing. The directory doesn't exist. Did I do something wrong when creating the user, or am I missing something?
does not work either.