change terminal to root ubuntu

C++
sudo -isudo passwd root
Source

Also in C++: