Last active
September 5, 2022 06:16
-
-
Save miguelmota/6bad7cc64b228070492f5dc40f336508 to your computer and use it in GitHub Desktop.
Linux add user example
This file contains hidden or 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
sudo useradd -m mota | |
# alternative way to create home directory | |
# mkhomedir_helper mota | |
sudo passwd mota | |
sudo su - mota | |
sudo whoami |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment