adduser username sudo deluser username https://www.digitalocean.com/community/tutorials/how-to-create-a-sudo-user-on-ubuntu-quickstart https://www.digitalocean.com/community/tutorials/how-to-add-and-delete-users-on-ubuntu-16-04 ---- ##https://askubuntu.com/questions/393463/create-the-home-directory-while-creating-a-user useradd -m USERNAME You have to use -m, otherwise no home directory will be created. If you want to specify the path of the home directory, use -d and specify the path: useradd -m -d /PATH/TO/FOLDER USERNAME You can then set the password with: passwd USERNAME All of the above need to be run as root, or with the sudo command beforehand. For more info, run man adduser. *** usermod -s /bin/bash user #give user bash shell chsh donald -s /bin/bash # change shell after the users has been added usermod -aG sudo username # add user to sudoer group |
UBUNTU DUMP >