First, start by creating a new user:
sudo adduser hadoop
Second password:
sudo passwd hadoop
If you can not use the root password, enter the following command:
sudo passwd root
Second, change user permissions sudo, change the / etc / sudosers file
cd /etc
sudo vim /etc/sudosers
Add to
hadoop ALL=(ALL:ALL) ALL
Third, delete users
sudo userdel -r hadooop