So I've been a linux user for maybe 15 years, redhat7, mandrake, suse 9 then 10, but I've been on Gentoo for the best part of 10 years now, until yesterday when I got my pi2b, and this whole 'sudo' thing is already throwing security alarm bells (not to mention being really annoying).
So on Gentoo (and even back when I was using windows2000), I have two accounts: my everyday 'user' account who can't do squat except use the thing, and I have my 'root' account with full access to everything. When I want to change settings, add/remove programs, edit config files, etc, I login as root (usually using 'su'), when I want to browse the net or whatever, I login as user.
But on my pi, there's the default 'user' (called 'pi'), who can do anything he wants if it's prefixed with 'sudo <command>'. So far that seems:
a) annoying. I can't just login as root and do what I want and logout, I have to type every command, when it fails I have to go back and type 'sudo' at the beginning. I've had to type it to install gpm and vim, and even to shut down, and I've had to type sudo each time. With one root login I could have done all that and save having to type sudo every.single.damn.time.
b) extremely insecure. my user (who is logged in more often and thus has more chance of being hacked etc) can do everything they want just by typing 'sudo' first? Whoever thought that giving users access to bork stuff with one command was a good idea?
So to fix it, I just want to get a regular 'root' user. I know I can just "adduser root" (or, sorry, "sudo adduser root"), and then "chown root:root / -R" (oops, I mean "sudo chown root:root / -R").
But is it as simple as that? Will that bork anything, like if I "chown /proc" will that kill anything? So should I do it directory-by-directory, like "chown /etc" and "chown /usr" etc. Are there any other directories that I shouldn't chown, like /sys or something else?
I know Gentoo has other certain user/groups like the 'portage' user (mostly in /usr/portage), and if I chowned them to 'root' they'd probably stop working. Raspbian obviously doesn't have the portage system, but is there anything like it that should Not be chowned to 'root', like the equivalent apt-get?