I want to know how i can become root at all times in terminal without having to type in my password or typing sudo. Thanks :D
2 Answers
You can log in directly as root instead of a user. If you're logging into a graphical desktop, this is very bad security practice, since you'll end up running a huge amount of software as root that doesn't typically need to be run as root, and isn't designed to be; a massive attack surface. Logging into an ssh session or text console as root is much less of an issue, but still potentially bad for security auditing reasons.
In Ubuntu, the root user by default has no password, so you can't log in as root[1]. To change this, you can run "passwd root" as root (e.g. using sudo). Make sure you pick an extremely complex password; enabling password-based login as root reduces your system's security, and using a weak password will reduce it significantly more.
Since you really don't want to reduce the security of your system this way, use sudo as described in the other answer, or my favorite sudo bash
.
[1] except over ssh using an SSH key for example...
i've looked, as i wanted to do this so i could move files from /host to the desktop, and from what i've seen, there is no way, because of the security of it.
sudo -i
is what you're looking for. You have to enter your password once, but then until you exit the interactive sudo sesseion, all the commands you run are automatically sudo'ed.