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
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfLS63dbKalrGtBdo-yiLK0bDFvmob1UP7CPaTzSbS-Z9qaKLRC6UbDmJHhW9AaaVDpLPUhiypYhhqTr57Sc3A5y2lppnFvhMpFIRMxgy-6xlLN0Bek7jOUvKF-hR6oU-zOEmFtzyEvvKf/s1600/passwd.png)
No comments:
Post a Comment