linux add user with home directory and bash shell, adding sudo group

Print Friendly, PDF & Email
sudo useradd -m someuser -s /bin/bash
sudo passwd someuser
sudo usermod -aG sudo someuser

-m : create homedirectory
-s : shell script

Leave a Reply

Your email address will not be published. Required fields are marked *