add or delete an user under ubuntu

adduser newuser

deluser newuser

sudo adduser newuser

sudo deluser newuser

deluser –remove-home newuser

sudo deluser –remove-home newuser

or

sudo useradd -D –base-dir /home/new_user

after that don’t forget to edit /etc/passwd file.

add user to sudo group:

sudo visudo:

newuser ALL=(ALL) ALL