Managing users and passwords on linux

Add user

Add user with correct bash and home folder:

sudo useradd -m -s /bin/bash USER
sudo passwd USER

#Add user to sudoers group
usermod -a -G admin USER

Remove user

sudo userdel USER

To remove also home directory, pass -r

sudo userdel -r USER

Change su password

sudo passwd

Leave a Reply

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