Last active
January 3, 2018 03:02
-
-
Save seafooler/eec67e29b27042755ae722f5b62835c2 to your computer and use it in GitHub Desktop.
Create a new user and related home directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Create a new user and related home directory | |
``` | |
sudo useradd -d /home/$username -m $username | |
``` | |
#Set the passwd | |
``` | |
sudo passwd $username | |
``` | |
#Set the default shell | |
``` | |
sudo usermod -s /bin/bash $username | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment