This question already has an answer here:
- How to enable root login? 6 answers
I have setup a virtual machine for compiling software for linux which I develop on Windows.
I setup to automount a windows folder, run compilation scripts and then just shutdown. The machine isn't even connected to a network.
I have read a few question to answer it myself but the only thing I can make happen is that I do not have to type in a password and auto login my user in ubuntu.
But what I want to do is: I want to execute a command in the terminal. I want it to execute with root privilidges, every command and always under any circumstances. I do not want to type "sudo" or "su" every time I go to the console to compile my programs (some scripts require root privilidges, some not, you don't know until you run it and a bunch of errors appear which makes it really frustrating).
So how do I do this?
Optional: How can I make everything in the default Ubuntu GUI also run as admin? Eg gedit when double clicking on a file?
I looked for other answers about this topic but they do not answer the question. Every answer denies an correct answer on a "it's not secure" basis (even though users state most of the times they are aware of the security risks)... and I do not care about a non-networked OS's security. It's just a matter of loading a previous snapshot of the compilation VM if anything breaks.