USERNAME="enter-your-username-here"
sudo useradd -d /home/$USERNAME -m $USERNAME
sudo passwd $USERNAME
sudo useradd -d /home/$USERNAME -m $USERNAME
sudo passwd $USERNAME
Change Default User Shell
If you want to default to a bash terminal by default when you log in as the user, then you will need to update the passwd file.
sudo $EDITOR /etc/passwd
Find the user you just added (it should be the last line because you just addeed it) and change the path after the last : to be /bin/bash instead of /bin/sh
No comments:
Post a Comment