ubuntu-gui-root-login By running the script. you can login as root in ubuntu GUI. Setp-1 Donload Setp-2 chmod +x script.sh ./script.sh Setp-3 Provide a password for root user. after that the system will reboot . after reboot login as root with password that you provided previously.