NOTE: IF YOUR DISTRIBUTION HAS DISABLED ROOT LOGIN THEN IT’S FOR A GOOD REASON! ROOT LOGINS CAN BE EXTREMELY DANGEROUS, SPECIALLY IF YOU ARE NEW TO LINUX ENVIRONMENT.
Why so? Simply because becoming the root user[like the administrator login in Windows] you will have the ultimate power of your system which if used incorrectly can destroy your data and even your system as a whole. SO USE THIS AT YOUR OWN RISK!
ENABLING ROOT ACCOUNT: Type in terminal :
sudo passwd root
and enter the password for root user and from next time you can use username “root” and this password to login or use su to have root access.
DISABLING ROOT ACCOUNT: Type in terminal:
passwd -l root
And done! 😉